I have an interface
export interface ITypeAssertions
{
isOfTypeElseFail<TExpected extends TActual, TActual>(value: TActual, oxIsOfType: (xVal: TActual) => boolean): value is TExpected;
}
and implementation
export class NodeJsTestingFrameworkAdapter implements ITypeAssertions
{
isOfTypeElseFail<TExpected extends TActual, TActual>(value: TActual, oxIsOfType: (xVal: TActual) => boolean): value is TExpected
{
throw new Error("Method not implemented.");
}
}
Compiler complains that:
interface-not-properly-implemented
(...)
What's wrong? Is this a bug in a type-checker?
PS. It was compiling fine under Ts-2.3.
Currently there is no chance to have it working, as it is described in the response under the github.com/Microsoft/TypeScript/issues/18202.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With