Skip to content

Commit

Permalink
refactor(expect): prepare for noUncheckedIndexedAccess (#4464)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua authored Mar 11, 2024
1 parent bdada09 commit 540a967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expect/expect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 540a967

Please sign in to comment.