I am working with a class that is defined as follows:
class Person {
@OneToOne()
pet: Animal;
}
Is there a method to obtain a transformed type that appears like this? (Including {propertyKey}Id: string
to properties through the use of a decorator)
// Utilizing generics
type ModifiedPerson = SomeGeneric<Person>
// Possibly using functions?
type ModifiedPerson = typeof someFunc(Person);
// This is what it would look like:
type ModifiedPerson = {
pet: Animal,
petId: string,
}