TypeScript Version: 2.0.10 (broken since 2.0.2).
Code
exporttypeFoo<A,B>=A|B;exporttypeBar<T>=Foo<number,T>;exportconstf=<T>(bar: Bar<T>)=>{returntrue;};Expected behavior:
tsc --declaration bar.ts should emit the following bar.d.ts:
exportdeclaretypeFoo<A,B>=A|B;exportdeclaretypeBar<T>=Foo<number,T>;exportdeclareconstf: <T>(bar: Bar<T>)=>boolean;
NB: 2.0.0 emits <T>(bar: number | T) => boolean, which is acceptable too.
Actual behavior:
exportdeclaretypeFoo<A,B>=A|B;exportdeclaretypeBar<T>=Foo<number,T>;exportdeclareconstf: <T>(bar: Foo<T>)=>boolean;// TS2314: Generic type 'Foo' requires 2 type argument(s).
TypeScript Version: 2.0.10 (broken since 2.0.2).
Code
Expected behavior:
tsc --declaration bar.tsshould emit the followingbar.d.ts:NB: 2.0.0 emits
<T>(bar: number | T) => boolean, which is acceptable too.Actual behavior: