pepka 1.9.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.d.ts CHANGED
@@ -783,7 +783,7 @@ type StrTmpl = ((data: AnyObject) => string);
783
783
  export declare const getTmpl: (tmpl: string) => StrTmpl;
784
784
  export declare const debounce: <T extends AnyFunc>(time: number, fn: T) => (...args: Parameters<T>) => Promise<ReturnType<T>>;
785
785
  export declare const throttle: <T extends AnyFunc>(time: number, fn: T) => (...args: Parameters<T>) => any;
786
- export declare const wait: (time: number) => QPromise<unknown>;
786
+ export declare const wait: (time: number) => QPromise<any>;
787
787
  export declare const uncurry: <Args extends any[] = any[], ReturnT = any>(fn: Curried<Args>) => AnyFunc;
788
788
 
789
789
  export {
package/package.json CHANGED
@@ -41,7 +41,7 @@
41
41
  "prod": "npm run gentypes && npm run prod:es && npm run prod:cjs",
42
42
  "all": "npm run dev && npm run prod"
43
43
  },
44
- "version": "1.9.0",
44
+ "version": "1.9.1",
45
45
  "devDependencies": {
46
46
  "@rollup/plugin-commonjs": "^29.0.2",
47
47
  "@rollup/plugin-node-resolve": "^16.0.3",
package/src/timers.ts CHANGED
@@ -26,4 +26,4 @@ export const throttle = <T extends AnyFunc>(time: number, fn: T) => {
26
26
  return res
27
27
  }
28
28
  }
29
- export const wait = (time: number) => new QPromise((ff) => setTimeout(ff, time))
29
+ export const wait = (time: number) => new QPromise<any>((ff) => setTimeout(ff, time))