Skip to content

Commit ef386fb

Browse files
committed
Add AnyFunction helper type
1 parent 96d7011 commit ef386fb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/toolkit/src/tsHelpers.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,11 @@ export function asSafePromise<Resolved, Rejected>(
230230
*
231231
* @internal
232232
*/
233-
export type AnyNonNullishValue = NonNullable<unknown>
233+
export type AnyNonNullishValue = NonNullable<unknown>
234+
235+
/**
236+
* Any function with any arguments.
237+
*
238+
* @internal
239+
*/
240+
export type AnyFunction = (...args: any[]) => any

0 commit comments

Comments
 (0)