Browse Source

无jira fix(base/extend): 修改泛型

master
Xavier.Meng 2 years ago
parent
commit
2bff8dc788
  1. 2
      typescript/core/base.ts

2
typescript/core/base.ts

@ -178,7 +178,7 @@ export interface _base {
functions: (object: object) => string[];
extend<T extends object>(object: T): T;
extend<T extends object, U extends object>(object: T, ...sources: U[]): T & UnionToIntersection<U>;
extend<T extends object, U>(object: T, ...sources: U[]): T & UnionToIntersection<NonNullable<U>>;
defaults: (object: object, ...sources: any[]) => object;

Loading…
Cancel
Save