From 633edbb1b63a5d1d44cd9d988f1e7c8cfe316d4e Mon Sep 17 00:00:00 2001 From: alan Date: Thu, 4 Jul 2019 19:36:49 +0800 Subject: [PATCH] feat: KERNEL-798 core/func/array --- typescript/core/func/array.ts | 5 +++++ typescript/index.ts | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 typescript/core/func/array.ts diff --git a/typescript/core/func/array.ts b/typescript/core/func/array.ts new file mode 100644 index 0000000000..c69fa3ccbb --- /dev/null +++ b/typescript/core/func/array.ts @@ -0,0 +1,5 @@ +export declare type _pushArray = (sArray: any[], array: any[]) => void; + +export declare type _pushDistinct = (sArray: any[], obj: any) => void; + +export declare type _pushDistinctArray = (sArray: any[], array: any[]) => void; \ No newline at end of file diff --git a/typescript/index.ts b/typescript/index.ts index ec82227072..95723ce610 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -1,5 +1,6 @@ import { _addI18n, _i18nText } from "./core/i18n"; import { _OB } from "./core/ob"; +import { _pushArray, _pushDistinct, _pushDistinctArray} from "./core/func/array"; export declare module BI { namespace i18n { @@ -8,4 +9,8 @@ export declare module BI { } const OB: _OB; + + const pushArray: _pushArray; + const pushDistinct: _pushDistinct; + const pushDistinctArray: _pushDistinctArray; }