@furystack/utils
Advanced tools
Comparing version 1.1.10 to 1.1.11
@@ -7,3 +7,3 @@ /** | ||
*/ | ||
export declare const debounce: <TArgs extends any[], TReturns>(method: (...args: TArgs) => TReturns, debounceMs?: number) => (...args: TArgs) => TReturns; | ||
export declare const debounce: <TArgs extends unknown[], TReturns>(method: (...args: TArgs) => TReturns, debounceMs?: number) => (...args: TArgs) => TReturns; | ||
//# sourceMappingURL=debounce.d.ts.map |
@@ -18,3 +18,2 @@ "use strict"; | ||
}; | ||
; | ||
Array.prototype.filterAsync = function (callbackFn) { | ||
@@ -21,0 +20,0 @@ return exports.filterAsync(this, callbackFn); |
@@ -11,5 +11,3 @@ export * from './disposable'; | ||
export * from './trace'; | ||
export * from './to-number'; | ||
export * from './tuple'; | ||
export * from './async-return-value'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -14,5 +14,3 @@ "use strict"; | ||
tslib_1.__exportStar(require("./trace"), exports); | ||
tslib_1.__exportStar(require("./to-number"), exports); | ||
tslib_1.__exportStar(require("./tuple"), exports); | ||
tslib_1.__exportStar(require("./async-return-value"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -6,3 +6,3 @@ import { Disposable } from './disposable'; | ||
*/ | ||
export interface TraceMethodOptions<T, TMethod extends (...args: TArgs) => any, TArgs extends any[]> { | ||
export interface TraceMethodOptions<T, TMethod extends (...args: TArgs) => unknown, TArgs extends unknown[]> { | ||
/** | ||
@@ -9,0 +9,0 @@ * The context object. Can be an instance or a constructor for static methods |
{ | ||
"name": "@furystack/utils", | ||
"version": "1.1.10", | ||
"version": "1.1.11", | ||
"description": "General utilities", | ||
@@ -39,3 +39,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "7bc33e6ebee975d23e4e782e37e398472c726b1d" | ||
"gitHead": "da155803c6c0122eb2285825d39d621fda637b28" | ||
} |
@@ -7,4 +7,4 @@ /** | ||
*/ | ||
export const debounce = <TArgs extends any[], TReturns>(method: (...args: TArgs) => TReturns, debounceMs = 250) => { | ||
let timeout: any | ||
export const debounce = <TArgs extends unknown[], TReturns>(method: (...args: TArgs) => TReturns, debounceMs = 250) => { | ||
let timeout: number | undefined | ||
return ((...args: TArgs) => { | ||
@@ -11,0 +11,0 @@ if (timeout) { |
@@ -27,4 +27,4 @@ /** | ||
} | ||
;(Array.prototype as any).filterAsync = function(callbackFn: (entry: any) => Promise<boolean>) { | ||
Array.prototype.filterAsync = function(callbackFn) { | ||
return filterAsync(this, callbackFn) | ||
} |
@@ -11,4 +11,2 @@ export * from './disposable' | ||
export * from './trace' | ||
export * from './to-number' | ||
export * from './tuple' | ||
export * from './async-return-value' |
@@ -40,3 +40,3 @@ import { RetrierOptions } from './retrier-options' | ||
private async wait(ms: number) { | ||
return new Promise<any>(resolve => { | ||
return new Promise(resolve => { | ||
setTimeout(resolve, ms) | ||
@@ -43,0 +43,0 @@ }) |
@@ -7,3 +7,3 @@ import { Disposable } from './disposable' | ||
*/ | ||
export interface TraceMethodOptions<T, TMethod extends (...args: TArgs) => any, TArgs extends any[]> { | ||
export interface TraceMethodOptions<T, TMethod extends (...args: TArgs) => unknown, TArgs extends unknown[]> { | ||
/** | ||
@@ -10,0 +10,0 @@ * The context object. Can be an instance or a constructor for static methods |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
193788
118
3557