Skip to content

Commit f7b0b39

Browse files
committed
fixed strict tsconfig linter errors
1 parent 243967e commit f7b0b39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/facts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export function until<Value>(values: Value[], stop: (value: Value) => boolean):
247247
* @template Fact The shape of the facts that are matched.
248248
*/
249249
export function match<Output, Fact extends FactShape>(fact: Fact, options: { [Key in Fact["name"]]: (fact: Extract<Fact, { name: Key }>) => Output }): Output {
250-
return options[fact.name](fact)
250+
return options[fact.name as Fact["name"]](fact as Extract<Fact, { name: Fact["name"] }>)
251251
}
252252

253253
/**

0 commit comments

Comments
 (0)