Closed scrapstation closed 2 years ago
AuditFields作为审计字段被Car继承,此时生成的Car错误
// 错误示例 declare namespace API { type AuditFields = { lastUpdatedOn?: string; createdOn?: string; }; type Car = { ""?: AuditFields; } & { no: string; name?: string; userInfo?: UserInfo; }; type UserInfo = { id?: string; name?: string; }; }
// 正确示例 declare namespace API { type AuditFields = { lastUpdatedOn?: string; createdOn?: string; }; type Car = AuditFields & { no: string; name?: string; userInfo?: UserInfo; }; type UserInfo = { id?: string; name?: string; }; }
@chenshuai2144 有时间发一版吗
done
66
AuditFields作为审计字段被Car继承,此时生成的Car错误