Use a ,
to separate the interfaces you want to implement. That gives the following class declaration :
class generics <T> implements first, second
Here is the complete code :
interface first {
name: string,
age: number
}
interface second {
product: string,
available: boolean,
amount: number
}
class generics <T> implements first, second {
name: string;
age: number;
product: string;
available: boolean;
amount: number;
}
Playground link
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…