From 812932113e617058d18519ac2da7a623160f7a8f Mon Sep 17 00:00:00 2001 From: alan Date: Fri, 2 Aug 2019 09:31:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20KERNEL-800=20=E8=B0=83=E6=95=B4=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/base.ts | 4 ++-- typescript/core/i18n.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/typescript/core/base.ts b/typescript/core/base.ts index d0e26dc1d..68d82b9b3 100644 --- a/typescript/core/base.ts +++ b/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: (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; diff --git a/typescript/core/i18n.ts b/typescript/core/i18n.ts index 2e4960158..95aa19584 100644 --- a/typescript/core/i18n.ts +++ b/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;