typing toPrimitives interface

Issue I have an interface like this: interface AggregateRoot<Primitives> { toPrimitives(): { [key in keyof Primitives]: any } } And I implement it like this: class Person implements AggregateRoot<Person> { public name public age toPrimitives(): { [key in keyof Person]:

Continue reading