I would like to create a interface which receives a actual class not a instance of the class. something like this:
class checkIfGonextPage{
localResult;
next;
constructor(localResult:string,next:string){
this.localResult=localResult;
this.next=next;
}
}
interface comp{
CheckifCanGoNext: checkIfGonextPage;
}
let x:comp ={"CheckifCanGoNext":checkIfGonextPage}
let f = new x["CheckifCanGoNext"]("sss","")
console.log(f.localResult);
if I set CheckifCanGoNext to any it will work but I will loose the type.