Browse Source

fix: KERNEL-800 调整参数类型

es6
alan 5 years ago
parent
commit
812932113e
  1. 4
      typescript/core/base.ts
  2. 2
      typescript/core/i18n.ts

4
typescript/core/base.ts

@ -235,7 +235,7 @@ export interface _base {
init: () => void;
has: (obj: object, keys: string[]) => boolean;
has: (obj: object, keys: string|string[]) => boolean;
freeze: <T>(value: T) => T;
@ -261,7 +261,7 @@ export interface _base {
isDeepMatch: (object: any, attrs: any) => boolean;
contains: (obj: any[], target: any, fromIndex: number) => number;
contains: (obj: any[], target: any, fromIndex?: number) => number;
deepContains: (obj: any[], copy: any) => number;

2
typescript/core/i18n.ts

@ -1,4 +1,4 @@
export declare type _addI18n = (v: string) => string;
export declare type _addI18n = (v: string | object) => string;
export declare type _i18nText = (key: string, ..._args: any[]) => string;

Loading…
Cancel
Save