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

[type] Move type definitions from DefinitelyTyped #609

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

kodai3
Copy link

@kodai3 kodai3 commented Jul 12, 2020

moved type definition from

Closes #506

i just moved, but type could be updated for instance, getDomTreeShapes and findNativeHandler are exported from SwipeableViews.js but not defined on DefinitelyTyped.
i didn't fix because i'm wondering theses should be exported


adding type test

@kodai3 kodai3 changed the title move type definitions from DefinitelyTyped [type] Move type definitions from DefinitelyTyped Jul 28, 2020
@caleb-harrelson caleb-harrelson added the needs testing This PR needs testing label Aug 14, 2020
@@ -20,7 +20,8 @@
"prop-types": "^15.6.0",
"react-event-listener": "^0.6.0",
"react-swipeable-views-core": "^0.13.7",
"shallow-equal": "^1.2.1"
"shallow-equal": "^1.2.1",
"@material-ui/types": "^4.0.0"
Copy link
Owner

Choose a reason for hiding this comment

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

This seems unrelated

Suggested change
"@material-ui/types": "^4.0.0"

Copy link

Choose a reason for hiding this comment

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

@kodai3, are you planning to fix this PR? It's the last of 3 opened ones, I guess @oliviertassinari is waiting for it before a potential merge & publish

Copy link
Owner

Choose a reason for hiding this comment

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

I support the idea to have the types built in the library directly.
The types package of Material-UI is meant for internal usages so it shouldn't be here. As for the other pull requests. This one can be work on independently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs testing This PR needs testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

react-swipeable-views-utils support for typescript
4 participants