Browse Source

Pull request #215672: 无JIRA fix: extend 类型修复

Merge in DEC/fineui from ~SYLAR/fineui:master to master

* commit '41edb79a1a627b1dc83c1b481387469b155f828a':
  无JIRA fix: extend 类型修复
research/test
Sylar-黄山 2 years ago
parent
commit
51c1b860d6
  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>(object: T, ...sources: U[]): T & UnionToIntersection<NonNullable<U>>;
extend<T extends object, U extends unknown[]>(object: T, ...sources: U): T & UnionToIntersection<NonNullable<U[number]>>;
defaults: (object: object, ...sources: any[]) => object;

Loading…
Cancel
Save