-
-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Description
I've been using the delay module in a typescript module (@google-cloud/profiler).
I'd previously used the type definitions from DefinitelyTyped, so @types/delay, without issue. But when I try to use version 3.1.0 of this module (and use the types from this latest version), my module no longer compiles, and I get errors like:
ts/test/test-time-profiler.ts:65:16 - error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'typeof import("/usr/local/google/home/nolanmar/cloud-profiler-nodejs-working/cloud-profiler-nodejs/node_modules/delay/index")' has no compatible call signatures.
65 await delay(2 * durationMillis);
~~~~~~~~~~~~~~~~~~~~~~~~~
Is this expected? Any advice for how I can migrate to version 3.1.0 of `delay?
Metadata
Metadata
Assignees
Labels
No labels