mirror of
https://github.com/robonen/tools.git
synced 2026-03-20 10:54:44 +00:00
feat(packages/stdlib): add promise types
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
export * from './string';
|
||||
export * from './array';
|
||||
export * from './function';
|
||||
export * from './array';
|
||||
export * from './promise';
|
||||
export * from './string';
|
||||
|
||||
4
packages/stdlib/src/types/ts/promise.ts
Normal file
4
packages/stdlib/src/types/ts/promise.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* Represents a value that may be a promise.
|
||||
*/
|
||||
export type MaybePromise<T> = T | Promise<T>;
|
||||
Reference in New Issue
Block a user