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

import React so the TS-compiler doesn't insert a global scope #213

Merged
merged 2 commits into from Oct 25, 2020

Conversation

JoviDeCroock
Copy link
Contributor

Because we were referencing React but not importing it the compiler saw it as a global which adds it as a reference.

Copy link
Collaborator

@hartzis hartzis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks dude!

@hartzis hartzis merged commit 21f346d into v6 Oct 25, 2020
@JoviDeCroock JoviDeCroock deleted the v6-no-global-types branch October 25, 2020 22:53
hartzis added a commit that referenced this pull request Nov 6, 2020
* remove Swipeable component src

* remove proptype dep

* overhaul tests and use react testing library (#186)

* clean up some deps, bundle with microbundle (#187)

* v6 start typescript overhaul (#188)

* V6 typescript examples (#193)

* instead of testing if xy values are false, see if they are undefined

* V6 ontap callback (#199)

* V6 verify velocity (#202)

* move types to separate file, re-order property destructuring (#207)

* V6 passive event solution (#210)

* 6.0.0-alpha.0

* V6 type exports readme updates (#211)

* 6.0.0-alpha.0

* migration guide, readme, type exports, prettier run on test

* 6.0.0-alpha.1

* import React so the TS-compiler doesn't insert a global scope (#213)

* upgrade peer to include react17, update docs

* 6.0.0-alpha.2


Co-authored-by: Urmit Patel <urmit.patel@formidable.com>
Co-authored-by: Jovi De Croock <jovi.decroock@formidable.com>
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