From 30fdf6dc83d3a9d44436528959c39d3eab14cbbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sabiniarz?= <31597105+mhvsa@users.noreply.github.com> Date: Tue, 31 Mar 2020 01:01:19 +0200 Subject: console: print promise details (#4524) --- cli/js/web/promise.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cli/js/web/promise.ts (limited to 'cli/js/web/promise.ts') 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 = [PromiseState, T | undefined]; -- cgit v1.2.3