Skip to content

Commit

Permalink
refactor(expect): prepare for noUncheckedIndexedAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua committed Mar 11, 2024
1 parent de23a76 commit 1a0aa88
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 1a0aa88

Please sign in to comment.