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