feat: add per task function strategy support
[poolifier.git] / src / utils.ts
index 7e1c8ef8ba02d6de027418d51912f56968aefb93..dd839bc491b622aa871b876424474d24abdfb44e 100644 (file)
@@ -207,7 +207,7 @@ export const max = (...args: number[]): number =>
  * @internal
  */
 // eslint-disable-next-line @typescript-eslint/no-explicit-any
-export const once = <A extends any[], R, C>(
+export const once = <A extends any[], R, C extends ThisType<any>>(
   fn: (...args: A) => R,
   context: C
 ): ((...args: A) => R) => {