#class User implements IUser
3 messages · Page 1 of 1 (latest)
3 messages · Page 1 of 1 (latest)
Is there any benefit to doing this? or am I just typing 1 thing twice now? What's a good use case for implements?
export interface User {
id: string;
}
export default class User extends Base implements IUser {
constructor(id: string) {
super();
this.id;
}
}