I have an interface
export interface Foo {
a: string;
b: string;
}
I want now to have another class which implements all keys of the interface but can have another type:
export class Bar implements keysof(Foo) {
a: SomeNewType;
b: SomeNewType2;
}
Is this possible in typescript?
Background: I want the Bar class' keys to be in sync with Foo