在线时间:8:00-16:00
132-9538-2358
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
For example, you have an object `A`, you want to extend it and modify some prop; then create a new interface B:
export interface B extends Omit<A, 'x' | 'y'> { x: string; // override x y: number; // override y newProp?: string; // add new prop }
评论
请发表评论