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;
declare type _array = {
type _array = {
pushArray: _pushArray;
pushDistinct: _pushDistinct;
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;
declare type _function = {
type _function = {
createDistinctName: _createDistinctName;
getSearchResult: _getSearchResult;
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;
declare type _number = {
type _number = {
add: _add;
sub: _sub;
mul: _mul;

3
typescript/core/func/string.ts

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

Loading…
Cancel
Save