TypeScript - (to investigate) - making an interface type be instantiable (!)

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

Comments