...
class UserEntity<T> extends BaseEntity {
constructor(props: T & BaseEntityProps, schema: S.Schema<T & BaseEntityProps>) {
super(props, S.intersect(schema, baseEntitySchema)); // is there a way to do this?
}
...
...
class UserEntity<T> extends BaseEntity {
constructor(props: T & BaseEntityProps, schema: S.Schema<T & BaseEntityProps>) {
super(props, S.intersect(schema, baseEntitySchema)); // is there a way to do this?
}
...