Browse Source

docs: 加入注释

es6
alan 5 years ago
parent
commit
bf99ea40da
  1. 55
      typescript/index.ts

55
typescript/index.ts

@ -15,11 +15,60 @@ export declare module BI {
const pushDistinct: _pushDistinct; const pushDistinct: _pushDistinct;
const pushDistinctArray: _pushDistinctArray; const pushDistinctArray: _pushDistinctArray;
/**
*
* @param str source字符串
* @param {String} startTag
* @return {Boolean} truefalse
*/
const startWith: _startWith; const startWith: _startWith;
/**
*
* @param str source字符串
* @param {String} endTag
* @return {Boolean} truefalse
*/
const endWith: _endWith; const endWith: _endWith;
const allIndexOf: _allIndexOf;
const appendQuery: _appendQuery; /**
* url中指定名字的参数
* @param str source字符串
* @param {String} name
* @return {String}
*/
const getQuery: _getQuery; const getQuery: _getQuery;
const perfectStart: _perfectStart;
/**
* url加上给定的参数
* @param str source字符串
* @param {Object} paras
* @return {String} url
*/
const appendQuery: _appendQuery;
/**
*
* @param str source字符串
* @param {String} s1
* @param {String} s2
* @returns {String}
*/
const replaceAll: _replaceAll; const replaceAll: _replaceAll;
/**
*
* @param str source字符串
* @param {String} start
* @returns {String}
*/
const perfectStart: _perfectStart;
/**
*
* @param str source字符串
* @param {String} sub
* @return {Number[]}
*/
const allIndexOf: _allIndexOf;
} }

Loading…
Cancel
Save