feat(packages/stdlib): add function and array types

This commit is contained in:
2024-10-16 06:29:05 +07:00
parent 679bced9f1
commit b2b74d8e2d
4 changed files with 15 additions and 5 deletions
+4
View File
@@ -0,0 +1,4 @@
/**
* A type that can be either a single value or an array of values
*/
export type Arrayable<T> = T | T[];
+9
View File
@@ -0,0 +1,9 @@
/**
* Any function
*/
export type AnyFunction = (...args: any[]) => any;
/**
* Void function
*/
export type VoidFunction = () => void;
@@ -1,4 +0,0 @@
/**
* Any function
*/
export type AnyFunction = (...args: any[]) => any;
+2 -1
View File
@@ -1,2 +1,3 @@
export * from './string'; export * from './string';
export * from './functions'; export * from './function';
export * from './array';