Browse Source

docs: 调整注释位置

es6
alan 6 years ago
parent
commit
5f1709e9cc
  1. 43
      typescript/core/func/string.ts
  2. 49
      typescript/index.ts

43
typescript/core/func/string.ts

@ -1,13 +1,56 @@
/**
*
* @param str source字符串
* @param {String} startTag
* @return {Boolean} truefalse
*/
export declare type _startWith = (str: string, startTag: string) => boolean;
/**
*
* @param str source字符串
* @param {String} endTag
* @return {Boolean} truefalse
*/
export declare type _endWith = (str: string, endTag: string) => boolean;
/**
* url中指定名字的参数
* @param str source字符串
* @param {String} name
* @return {String}
*/
export declare type _getQuery = (str: string, name: string) => string|null;
/**
* url加上给定的参数
* @param str source字符串
* @param {Object} paras
* @return {String} url
*/
export declare type _appendQuery = (str: string, paras: {[key: string]: string|number}) => string;
/**
*
* @param str source字符串
* @param {String} s1
* @param {String} s2
* @returns {String}
*/
export declare type _replaceAll = (str: string, s1: string, s2: string) => string;
/**
*
* @param str source字符串
* @param {String} start
* @returns {String}
*/
export declare type _perfectStart = (str: string, start: string) => string;
/**
*
* @param str source字符串
* @param {String} sub
* @return {Number[]}
*/
export declare type _allIndexOf = (str: string, sub: string) => number[];

49
typescript/index.ts

@ -15,60 +15,11 @@ export declare module BI {
const pushDistinct: _pushDistinct;
const pushDistinctArray: _pushDistinctArray;
/**
*
* @param str source字符串
* @param {String} startTag
* @return {Boolean} truefalse
*/
const startWith: _startWith;
/**
*
* @param str source字符串
* @param {String} endTag
* @return {Boolean} truefalse
*/
const endWith: _endWith;
/**
* url中指定名字的参数
* @param str source字符串
* @param {String} name
* @return {String}
*/
const getQuery: _getQuery;
/**
* 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;
/**
*
* @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