Commit 129017a

Anton Medvedev <anton@medv.io>
2022-06-02 18:14:59
Fix within() signature
1 parent be21ecc
Changed files (1)
src/core.ts
@@ -332,7 +332,7 @@ export class ProcessOutput extends Error {
   }
 }
 
-export function within<R>(callback: (...args: any) => R): R {
+export function within<R>(callback: () => R): R {
   return storage.run({ ...getStore() }, callback)
 }