Browse Source

refactor: 去掉declare

master
iapyang 5 years ago
parent
commit
60c02da48c
  1. 2
      typescript/core/func/array.ts
  2. 2
      typescript/core/func/function.ts
  3. 2
      typescript/core/func/number.ts
  4. 3
      typescript/core/func/string.ts

2
typescript/core/func/array.ts

@ -4,7 +4,7 @@ export type _pushDistinct = (sArray: any[], obj: any) => void;
export type _pushDistinctArray = (sArray: any[], array: any[]) => void; export type _pushDistinctArray = (sArray: any[], array: any[]) => void;
declare type _array = { type _array = {
pushArray: _pushArray; pushArray: _pushArray;
pushDistinct: _pushDistinct; pushDistinct: _pushDistinct;
pushDistinctArray: _pushDistinctArray; pushDistinctArray: _pushDistinctArray;

2
typescript/core/func/function.ts

@ -28,7 +28,7 @@ export type _beforeFunc = (sFunc: Function, func: Function) => Function;
*/ */
export type _afterFunc = (sFunc: Function, func: Function) => Function; export type _afterFunc = (sFunc: Function, func: Function) => Function;
declare type _function = { type _function = {
createDistinctName: _createDistinctName; createDistinctName: _createDistinctName;
getSearchResult: _getSearchResult; getSearchResult: _getSearchResult;
beforeFunc: _beforeFunc; beforeFunc: _beforeFunc;

2
typescript/core/func/number.ts

@ -31,7 +31,7 @@ export type _mul = (num: number, arg: number) => number;
*/ */
export type _div = (num: number, arg: number) => number; export type _div = (num: number, arg: number) => number;
declare type _number = { type _number = {
add: _add; add: _add;
sub: _sub; sub: _sub;
mul: _mul; mul: _mul;

3
typescript/core/func/string.ts

@ -54,8 +54,7 @@ export type _perfectStart = (str: string, start: string) => string;
* @return {Number[]} * @return {Number[]}
*/ */
export type _allIndexOf = (str: string, sub: string) => number[]; export type _allIndexOf = (str: string, sub: string) => number[];
type _string = {
declare type _string = {
startWith: _startWith; startWith: _startWith;
endWith: _endWith; endWith: _endWith;
getQuery: _getQuery; getQuery: _getQuery;

Loading…
Cancel
Save