p-throttle
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -13,4 +13,4 @@ declare class AbortErrorClass extends Error { | ||
declare namespace pThrottle { | ||
type ThrottledFunction<Argument, ReturnValue> = (( | ||
...arguments: Argument[] | ||
type ThrottledFunction<Argument extends readonly unknown[], ReturnValue> = (( | ||
...arguments: Argument | ||
) => PromiseResolve<ReturnValue>) & { | ||
@@ -82,5 +82,5 @@ /** | ||
options: pThrottle.Options | ||
): <Argument, ReturnValue>(function_: (...arguments: Argument[]) => ReturnValue) => pThrottle.ThrottledFunction<Argument, ReturnValue>; | ||
): <Argument extends readonly unknown[], ReturnValue>(function_: (...arguments: Argument) => ReturnValue) => pThrottle.ThrottledFunction<Argument, ReturnValue>; | ||
}; | ||
export = pThrottle; |
{ | ||
"name": "p-throttle", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Throttle promise-returning & async functions", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
8383