mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 16:19:12 -05:00
57e95032c8
Fixes #6686
13 lines
254 B
TypeScript
13 lines
254 B
TypeScript
/* eslint-disable */
|
|
export interface D {
|
|
resolve: any;
|
|
reject: any;
|
|
}
|
|
|
|
export function d(): D {
|
|
let methods;
|
|
const promise = new Promise((resolve, reject) => {
|
|
methods = { resolve, reject };
|
|
});
|
|
return Object.assign(promise, methods);
|
|
}
|