6 lines
71 B
TypeScript
6 lines
71 B
TypeScript
|
interface Generic<T> {
|
||
|
x: T;
|
||
|
}
|
||
|
|
||
|
var y: Generic<number> = { x: 3 };
|