kiota
kiota copied to clipboard
TypeScript: Consider extending model class from model interfaces
Current design:
interface User
{
name: string
}
class User implements IUser{
name: string
}
New design:
class User {
name:string;
}
interface IUser extends Partial<User>{}
This helps in deduplicating some code and optimizing size.
closing as duplicate of #1730
@baywet this is not a duplicate. Do you mind if I reopen this?
#1730 focuses on just the serialization part.
@nikithauc, sure, sorry for jumping the guns here. Would you mind providing more context/details on the original post to help understand things please?
As we're moving to a model of interfaces only, this is no longer required. Closing