Add regression test
This commit is contained in:
parent
5bb8d2a590
commit
f6c79a631c
|
@ -0,0 +1,6 @@
|
|||
// @strict: true
|
||||
|
||||
// Repro from #21273
|
||||
|
||||
declare function conforms<T>(source: { [K in keyof T]: (val: T[K]) => boolean }): (value: T) => boolean;
|
||||
conforms({ foo: (v: string) => false })({ foo: "hello" });
|
Loading…
Reference in a new issue