From 540a9675b66fee45158d99a93dd594ea69713905 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Mon, 11 Mar 2024 20:31:38 +1100 Subject: [PATCH] refactor(expect): prepare for `noUncheckedIndexedAccess` (#4464) --- expect/expect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expect/expect.ts b/expect/expect.ts index 89090612fbbb..2008e096d5b8 100644 --- a/expect/expect.ts +++ b/expect/expect.ts @@ -141,7 +141,7 @@ export function expect(value: unknown, customMessage?: string): Expected { ...extendMatchers, ...matchers, }; - const matcher: Matcher = allMatchers[name as MatcherKey]; + const matcher = allMatchers[name as MatcherKey] as Matcher; if (!matcher) { throw new TypeError( typeof name === "string"