1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 10:09:20 -05:00
denoland-deno/cli/js/web/promise.ts

10 lines
205 B
TypeScript
Raw Normal View History

2020-07-06 21:45:39 -04:00
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
2020-03-30 19:01:19 -04:00
export enum PromiseState {
2020-07-06 21:45:39 -04:00
Pending,
Fulfilled,
Rejected,
2020-03-30 19:01:19 -04:00
}
export type PromiseDetails<T> = [PromiseState, T | undefined];