We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript Version: 2.0.10 (broken since 2.0.2).
Code
export type Foo<A, B> = A | B; export type Bar<T> = Foo<number, T>; export const f = <T>(bar: Bar<T>) => { return true; };
Expected behavior: tsc --declaration bar.ts should emit the following bar.d.ts:
tsc --declaration bar.ts
bar.d.ts
export declare type Foo<A, B> = A | B; export declare type Bar<T> = Foo<number, T>; export declare const f: <T>(bar: Bar<T>) => boolean;
NB: 2.0.0 emits <T>(bar: number | T) => boolean, which is acceptable too.
<T>(bar: number | T) => boolean
Actual behavior:
export declare type Foo<A, B> = A | B; export declare type Bar<T> = Foo<number, T>; export declare const f: <T>(bar: Foo<T>) => boolean; // TS2314: Generic type 'Foo' requires 2 type argument(s).
The text was updated successfully, but these errors were encountered:
ah, sorry—looks like this was fixed for 2.1: #11931
Sorry, something went wrong.
Looks good in nightly, but still broken in 2.1.1 (RC). @mhegazy can you confirm which release the fix will be in?
No branches or pull requests
TypeScript Version: 2.0.10 (broken since 2.0.2).
Code
Expected behavior:
tsc --declaration bar.ts
should emit the followingbar.d.ts
:NB: 2.0.0 emits
<T>(bar: number | T) => boolean
, which is acceptable too.Actual behavior:
The text was updated successfully, but these errors were encountered: