Skip to content

Conversation

dteske25
Copy link
Contributor

@dteske25 dteske25 commented Feb 6, 2020

While working to implement React-SortableJS, I discovered an issue with the types definition. By default Omit is included in newer versions of TS, but in older ones it requires an explicit definition. This PR adds an explicit omit function, allowing for backwards compatibility with older versions of TS.

@dteske25 dteske25 requested a review from waynevanson February 6, 2020 16:00
Copy link
Collaborator

@waynevanson waynevanson left a comment

Choose a reason for hiding this comment

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

Nice one! I'll publish these today.

Why not just upgrade to an earlier version of Typescript?
What typescript version were you using?

@waynevanson waynevanson merged commit b40b7b6 into SortableJS:master Feb 6, 2020
@dteske25
Copy link
Contributor Author

dteske25 commented Feb 6, 2020

We have some other dependencies preventing us from upgrading right now, but we still really wanted to use this library. Thanks for getting to it so quickly!

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.

2 participants