mirror of
https://github.com/denoland/deno.git
synced 2024-12-30 11:16:38 -05:00
8e914be742
This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code.
13 lines
258 B
TypeScript
13 lines
258 B
TypeScript
// deno-lint-ignore-file
|
|
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);
|
|
}
|