TypeScript/tests/cases/compiler/declarationEmitTypeAliasWithTypeParameters1.ts

5 lines
140 B
TypeScript
Raw Normal View History

2016-09-28 23:51:49 +02:00
// @declaration: true
export type Bar<X, Y> = () => [X, Y];
export type Foo<Y> = Bar<any, Y>;
export const y = (x: Foo<string>) => 1