swc/crates/swc_bundler/tests/fixture/issue-1156-1/input/q.ts
2021-11-09 20:42:49 +09:00

12 lines
248 B
TypeScript

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);
}