This works but I was wondering if there is a better way of getting the constructor to know we want a UserEntity aka typeof this
class BaseEntity {
constructor(data: ) {
Object.assign(this, data);
}
}
class UserEntity extends BaseEntity {
name: string;
}
0 comments:
Post a Comment
Thanks