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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include DOM lib in types #11

Merged
merged 1 commit into from Apr 11, 2021
Merged

Include DOM lib in types #11

merged 1 commit into from Apr 11, 2021

Conversation

fregante
Copy link
Contributor

@fregante fregante commented Apr 10, 2021

As mentioned in f5aa5f5, adding a lib array breaks browser modules.

The fun part is that I can't override it via my own tsconfig, it's just ignored, but if you add "DOM" to this array it works. I was adding lib instead of compilerOptions.lib. 🤦‍♂️

@sindresorhus sindresorhus merged commit 3189d78 into sindresorhus:main Apr 11, 2021
@sindresorhus
Copy link
Owner

I don't really like adding DOM types by default, but since TS does it, I agree, we should do it here too.

@fregante fregante deleted the patch-1 branch April 11, 2021 04:17
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.

None yet

2 participants