1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 19:04:46 +00:00

feat(packages/stdlib): add promise types

This commit is contained in:
2024-11-30 04:24:49 +07:00
parent 41e3d90e41
commit 90dbdf4c88
2 changed files with 7 additions and 2 deletions

View File

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

View File

@@ -0,0 +1,4 @@
/**
* Represents a value that may be a promise.
*/
export type MaybePromise<T> = T | Promise<T>;