to investigate:
TypeScript - making an interface type:
- be instantiable (!)
- and available at run-time ? – for instanceof (which normally does not work with interfaces)
export interface MyInterface {
myDistinctProperty: boolean;
}
declare var MyInterface: {
prototype: MyInterface;
new(): MyInterface;
}
reference:
interface HTMLDivElement
in
node_modules\typescript\lib.dom.d.ts
TypeScript - making an interface type:
- be instantiable (!)
- and available at run-time ? – for instanceof (which normally does not work with interfaces)
export interface MyInterface {
myDistinctProperty: boolean;
}
declare var MyInterface: {
prototype: MyInterface;
new(): MyInterface;
}
reference:
interface HTMLDivElement
in
node_modules\typescript\lib.dom.d.ts
Comments
Post a Comment