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:
Andy
2017-08-09 14:41:38 -07:00
committed by GitHub
parent 37b20ee670
commit e1ba65ae64
6 changed files with 115 additions and 5 deletions

View File

@@ -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 => {},
});