Browse Source

无JIRA fix: extend 类型修复

research/test
Sylar 2 years ago
parent
commit
41edb79a1a
  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