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';
|
||||
|
||||
@@ -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