@cc-heart/utils
Version:
🔧 javascript common tools collection
22 lines (21 loc) • 700 B
TypeScript
/**
* This function does nothing.
*
* @return {void} No return value.
*/
export declare const noop: () => void;
/**
* @description Add the number of cuts based on the original split and return all subsets after the cut
* @param str need to split of primitive string
* @param splitStr split params
* @param num split limit
* @returns a new split array, length is num + 1
*/
export declare function mulSplit(str: string, splitStr: string, num?: number): string[];
/**
* Sleeps for a given delay.
*
* @param {number} delay - The delay, in milliseconds.
* @return {Promise<void>} A promise that resolves after the delay.
*/
export declare const sleep: (delay: number) => Promise<unknown>;