mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 19:12:20 +08:00
Test for calling p-defer's resolve without any arguments
This commit is contained in:
@@ -7,3 +7,7 @@ function delay(deferred: pDefer.DeferredPromise<string>, ms: number) {
|
||||
|
||||
let s: string;
|
||||
async function f() { s = await delay(pDefer<string>(), 100); }
|
||||
|
||||
async function u() {
|
||||
const u: Promise<any> = pDefer().resolve();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user