20 lines
270 B
TypeScript
20 lines
270 B
TypeScript
|
//@module: commonjs
|
||
|
export interface I1 {
|
||
|
m1: () => void;
|
||
|
}
|
||
|
|
||
|
export interface I2 {
|
||
|
m2: () => void;
|
||
|
}
|
||
|
|
||
|
export interface I3<T> extends I1, I2 {
|
||
|
//export interface I3<T> extends I2, I1 {
|
||
|
p1: T;
|
||
|
}
|
||
|
|
||
|
var x: I3<number>;
|
||
|
x.p1;
|
||
|
x.m1();
|
||
|
x.m2();
|
||
|
|