From e41c78cd1defb0fb5cb1064a90ae3bc16a7ea869 Mon Sep 17 00:00:00 2001 From: robonen Date: Sun, 6 Oct 2024 06:46:13 +0700 Subject: [PATCH] feat(packages/stdlib): add AnyFunction type --- packages/stdlib/src/types/ts/functions.ts | 4 ++++ packages/stdlib/src/types/ts/index.ts | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 packages/stdlib/src/types/ts/functions.ts diff --git a/packages/stdlib/src/types/ts/functions.ts b/packages/stdlib/src/types/ts/functions.ts new file mode 100644 index 0000000..cd57094 --- /dev/null +++ b/packages/stdlib/src/types/ts/functions.ts @@ -0,0 +1,4 @@ +/** + * Any function + */ +export type AnyFunction = (...args: any[]) => any; \ No newline at end of file diff --git a/packages/stdlib/src/types/ts/index.ts b/packages/stdlib/src/types/ts/index.ts index 961e79e..442cb14 100644 --- a/packages/stdlib/src/types/ts/index.ts +++ b/packages/stdlib/src/types/ts/index.ts @@ -1 +1,2 @@ -export * from './string'; \ No newline at end of file +export * from './string'; +export * from './functions'; \ No newline at end of file