You could use TypeScript’s built in InstanceType for that:
class MyClass
{
private delegate: InstanceType<typeof MyClass>['myMethod']; // gets the type (boolean) => number;
public myMethod( arg: boolean )
{
return 3.14;
}
}
You could use TypeScript’s built in InstanceType for that:
class MyClass
{
private delegate: InstanceType<typeof MyClass>['myMethod']; // gets the type (boolean) => number;
public myMethod( arg: boolean )
{
return 3.14;
}
}