Browse Source

Pull request #2008: refactor: 声明补充

Merge in VISUAL/fineui from ~KIRA/fineui:master to master

* commit 'f50e3ad3b5c42d588cf9431160a944cb46855850':
  声明
  声明
  声明
es6
Kira 4 years ago
parent
commit
4ee34fc448
  1. 14
      typescript/core/func/function.ts

14
typescript/core/func/function.ts

@ -16,6 +16,20 @@ export type _function = {
*/ */
getSearchResult: (items: any, keyword: any, param?: string) => { find: any[], match: any[] }; getSearchResult: (items: any, keyword: any, param?: string) => { find: any[], match: any[] };
/**
* url
* @param urlTemplate url模板
* @param param
*/
getEncodeURL: (urlTemplate: string, param: any) => string;
/**
* GB2312排序的结果
* @param items
* @param key
*/
getSortedResult: <T>(items: T[], key?: string | Function) => T[];
/** /**
* A执行之前执行方法B * A执行之前执行方法B
* @param sFunc A * @param sFunc A

Loading…
Cancel
Save