I have two models Model
and its subclass ClientModel
an ambient module. Now I want to declare a set of attributes of ClientModel
from an interface so called Client
. How can I do it? I can imagine something like this:
interface Client {
name: string;
email: string;
}
declare class ClientModel extends Model implements Client {
// with name and email here without redeclare them
}