mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-29 21:02:11 -05:00
Add simple version of chooseOverload for common case of single non-generic signature (#17589)
* Add simple version of `chooseOverload` for common case of single non-generic signature * Use a single function
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
interface I {
|
||||
a(s: string): void;
|
||||
b(): (n: number) => void;
|
||||
}
|
||||
|
||||
declare function f(i: I): void;
|
||||
|
||||
f({
|
||||
a: s => {},
|
||||
b: () => n => {},
|
||||
});
|
||||
Reference in New Issue
Block a user