{"action":"closed","issue":{"url":"https://api.github.com/repos/sindresorhus/delay/issues/32","repository_url":"https://api.github.com/repos/sindresorhus/delay","labels_url":"https://api.github.com/repos/sindresorhus/delay/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/delay/issues/32/comments","events_url":"https://api.github.com/repos/sindresorhus/delay/issues/32/events","html_url":"https://github.com/sindresorhus/delay/issues/32","id":352322927,"node_id":"MDU6SXNzdWUzNTIzMjI5Mjc=","number":32,"title":"Problems using","user":{"login":"nolanmar511","id":14046562,"node_id":"MDQ6VXNlcjE0MDQ2NTYy","avatar_url":"https://avatars0.githubusercontent.com/u/14046562?v=4","gravatar_id":"","url":"https://api.github.com/users/nolanmar511","html_url":"https://github.com/nolanmar511","followers_url":"https://api.github.com/users/nolanmar511/followers","following_url":"https://api.github.com/users/nolanmar511/following{/other_user}","gists_url":"https://api.github.com/users/nolanmar511/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanmar511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanmar511/subscriptions","organizations_url":"https://api.github.com/users/nolanmar511/orgs","repos_url":"https://api.github.com/users/nolanmar511/repos","events_url":"https://api.github.com/users/nolanmar511/events{/privacy}","received_events_url":"https://api.github.com/users/nolanmar511/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-20T22:46:30Z","updated_at":"2018-09-03T04:05:23Z","closed_at":"2018-09-03T04:05:23Z","author_association":"NONE","body":"I've been using the `delay` module in a typescript module (`@google-cloud/profiler`).\r\n\r\nI'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:\r\n\r\n```\r\nts/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.\r\n\r\n65          await delay(2 * durationMillis);\r\n                  ~~~~~~~~~~~~~~~~~~~~~~~~~\r\n```\r\n\r\nIs this expected? Any advice for how I can migrate to version 3.1.0 of `delay? "}}
{"actor":{"display_login":"sindresorhus"}}