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

removes Omit from the typescript definitions #589

Merged
merged 1 commit into from
Aug 19, 2019

Conversation

keithbloom
Copy link
Contributor

@keithbloom keithbloom commented Aug 13, 2019

The current typings depend upon Omit<> from ts-essentials but this is a common type that has been added by people (myself included) to their projects. The duplicate definition of Omit<> causes the compiler to complain. Omit<> has also been added to TS 3.5 so this will cause a conflict for those people who are targeting 3.5

To work around this I have changed the use of the Omit<> type helper and replaced it with the more explicit use of Pick<> and Exclude<>. This will prevent anyone that has their own Omit<> type or is targeting TS 3.5 from failing to build the project.

The added bonus is that ts-essentials is no longer needed so there is one less dependency required 馃樅. However I decided not to remove this from the package.json as the reference to final-form is set as to use a yalc link. I do not have this setup so decided it is best left out of this PR.

@codecov
Copy link

codecov bot commented Aug 13, 2019

Codecov Report

Merging #589 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #589   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          16     16           
  Lines         233    233           
  Branches       57     57           
=====================================
  Hits          233    233

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update 4eb0d7c...6d3470e. Read the comment docs.

@erikras
Copy link
Member

erikras commented Aug 13, 2019

@Andarist, this look 馃憤 to you?

@Andarist
Copy link
Contributor

Yeah, sure - in the future you could replace it back with builtin Omit. Not sure if it's a great time right now to do it, but maybe once TS@3.6 gets out?

@keithbloom
Copy link
Contributor Author

keithbloom commented Aug 19, 2019

Thank you @erikras and @Andarist for the review and 馃憤 . Can this be merged?

@erikras erikras merged commit 49a42d3 into final-form:master Aug 19, 2019
@keithbloom keithbloom deleted the typescript-remove-omit branch August 21, 2019 08:38
@lock
Copy link

lock bot commented Sep 20, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 20, 2019
@erikras
Copy link
Member

erikras commented Nov 18, 2019

Published in v6.3.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants