8 lines
126 B
TypeScript
8 lines
126 B
TypeScript
|
interface IFoo<T> {
|
||
|
x: T;
|
||
|
}
|
||
|
|
||
|
interface Array<T> extends IFoo<T> { }
|
||
|
|
||
|
var arr: string[] = [];
|
||
|
var y: number = arr.x;
|