UNPKG

can-can-word-bug

Version:

can-can-word-bug 是一个 TS 编写的工具库

16 lines (15 loc) 254 B
/** * promise 延迟函数 * @example * const fn = async () => { * await delay(10000) * console.log('hello') * } */ declare const delay: ( /** * 延迟多少毫秒 * @default 300 */ time?: number) => Promise<unknown>; export default delay;