TypeScript/tests/cases/compiler/declarationEmitTypeAliasWithTypeParameters1.ts
Kanchalai Tanglertsampan a7f9d73498 Add tests and baselines
2016-09-28 14:51:49 -07:00

5 lines
140 B
TypeScript

// @declaration: true
export type Bar<X, Y> = () => [X, Y];
export type Foo<Y> = Bar<any, Y>;
export const y = (x: Foo<string>) => 1