{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/delay/issues/40","repository_url":"https://api.github.com/repos/sindresorhus/delay","labels_url":"https://api.github.com/repos/sindresorhus/delay/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/delay/issues/40/comments","events_url":"https://api.github.com/repos/sindresorhus/delay/issues/40/events","html_url":"https://github.com/sindresorhus/delay/issues/40","id":364665161,"node_id":"MDU6SXNzdWUzNjQ2NjUxNjE=","number":40,"title":"Typescript dom reference causes failure in non-DOM contexts","user":{"login":"ckknight","id":66227,"node_id":"MDQ6VXNlcjY2MjI3","avatar_url":"https://avatars1.githubusercontent.com/u/66227?v=4","gravatar_id":"","url":"https://api.github.com/users/ckknight","html_url":"https://github.com/ckknight","followers_url":"https://api.github.com/users/ckknight/followers","following_url":"https://api.github.com/users/ckknight/following{/other_user}","gists_url":"https://api.github.com/users/ckknight/gists{/gist_id}","starred_url":"https://api.github.com/users/ckknight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckknight/subscriptions","organizations_url":"https://api.github.com/users/ckknight/orgs","repos_url":"https://api.github.com/users/ckknight/repos","events_url":"https://api.github.com/users/ckknight/events{/privacy}","received_events_url":"https://api.github.com/users/ckknight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-27T21:45:23Z","updated_at":"2018-09-28T08:07:07Z","closed_at":null,"author_association":"NONE","body":"The lib reference to `dom` https://github.com/sindresorhus/delay/blob/34e50092c96d05f3d248130212a163a22570618f/index.d.ts#L1 prevents this from being properly usable within non-DOM contexts such as `react-native`.\r\n\r\n```\r\nnode_modules/typescript/lib/lib.dom.d.ts:17604:6 - error TS2300: Duplicate identifier 'RequestInfo'.\r\n\r\n17604 type RequestInfo = Request | string;\r\n           ~~~~~~~~~~~\r\n\r\nnode_modules/@types/react-native/globals.d.ts:92:14\r\n92 declare type RequestInfo = Request | string;\r\n                ~~~~~~~~~~~\r\nRequestInfo' was also declared here.\r\n```"},"comment":{"url":"https://api.github.com/repos/sindresorhus/delay/issues/comments/425356895","html_url":"https://github.com/sindresorhus/delay/issues/40#issuecomment-425356895","issue_url":"https://api.github.com/repos/sindresorhus/delay/issues/40","id":425356895,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTM1Njg5NQ==","user":{"login":"sindresorhus","id":170270,"node_id":"MDQ6VXNlcjE3MDI3MA==","avatar_url":"https://avatars1.githubusercontent.com/u/170270?v=4","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T08:07:07Z","updated_at":"2018-09-28T08:07:07Z","author_association":"OWNER","body":"@dex4er @felixfbecker How does one handle this? Is there any way we can just import exactly the symbols we need instead of all of the `dom`?"}}
{"actor":{"display_login":"sindresorhus"}}