diff options
author | MichaĆ Sabiniarz <31597105+mhvsa@users.noreply.github.com> | 2020-03-31 01:01:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 19:01:19 -0400 |
commit | 30fdf6dc83d3a9d44436528959c39d3eab14cbbb (patch) | |
tree | 8f9cd11b1ae96333158b7a4be7d3d982dfde1688 /cli/js/web/promise.ts | |
parent | 3892d49165f00b2ce078825c204ba8ceaa21f386 (diff) |
console: print promise details (#4524)
Diffstat (limited to 'cli/js/web/promise.ts')
-rw-r--r-- | cli/js/web/promise.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/js/web/promise.ts b/cli/js/web/promise.ts new file mode 100644 index 000000000..b00c0786f --- /dev/null +++ b/cli/js/web/promise.ts @@ -0,0 +1,7 @@ +export enum PromiseState { + Pending = 0, + Fulfilled = 1, + Rejected = 2, +} + +export type PromiseDetails<T> = [PromiseState, T | undefined]; |