Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Deno and React Native compatibility #295

Merged
merged 1 commit into from
Nov 14, 2020
Merged

Fix Deno and React Native compatibility #295

merged 1 commit into from
Nov 14, 2020

Conversation

xeoth
Copy link
Contributor

@xeoth xeoth commented Nov 2, 2020

Removed the line in index.d.ts that caused errors when trying to use the library in Deno. This resolves #294 and fixes #224.

I have tested it on Deno 1.5.1 with Typescript 4.0.3 and it seems to work fine.

@sholladay mentioned that they want someone proficient in Typescript to analyze potential drawbacks from doing that, so I'm leaving it up to discussion since I'm far from an expert 馃槄

@sindresorhus sindresorhus changed the title Removed the line responsible for Deno's Typescript errors Fix Deno compatibility Nov 14, 2020
@sindresorhus sindresorhus changed the title Fix Deno compatibility Fix Deno and React Native compatibility Nov 14, 2020
@sindresorhus sindresorhus merged commit 2bff89a into sindresorhus:master Nov 14, 2020
@sindresorhus
Copy link
Owner

It's there to show a friendly error if a user forgets to add the dom TS lib, but it seems it's not worth the trouble.

@xeoth xeoth deleted the deno-types-fix branch November 15, 2020 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ky's types don't work in Deno's Typescript TypeScript issue with React Native + /// <reference lib="dom"/>
2 participants