1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 10:54:44 +00:00

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

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[];

View File

@@ -0,0 +1,9 @@
/**
* Any function
*/
export type AnyFunction = (...args: any[]) => any;
/**
* Void function
*/
export type VoidFunction = () => void;

View File

@@ -1,4 +0,0 @@
/**
* Any function
*/
export type AnyFunction = (...args: any[]) => any;

View File

@@ -1,2 +1,3 @@
export * from './string';
export * from './functions';
export * from './function';
export * from './array';