Skip to content

Commit f6c79a6

Browse files
committed
Add regression test
1 parent 5bb8d2a commit f6c79a6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// @strict: true
2+
3+
// Repro from #21273
4+
5+
declare function conforms<T>(source: { [K in keyof T]: (val: T[K]) => boolean }): (value: T) => boolean;
6+
conforms({ foo: (v: string) => false })({ foo: "hello" });

0 commit comments

Comments
 (0)