Skip to content

do packages that use ts-toolbelt a major upgrade for ts-toolbelt v9? #200

Answered by millsp
mesqueeb asked this question in Q&A
Discussion options

You must be logged in to vote
  1. It must be a dependency. If you set it as a devDependency, your package consumers will not benefit from the types packaged in the ts-toolbelt - it will appear to be broken at first. They might have to install ts-toolbelt by hand, that's why you could enable peerDependency. But since two ts-toobelt versions can now cohabitate, it really only makes sense to add it as a direct dependency.

  2. The short answer is "No". The types are safer, so stuff might break. But we can generally consider this as a patch - not a breaking change. These changes mostly affect output of types that use the At utility, because At will now yield the undefined type when props don't exist (from version 9 on) - where…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by millsp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #199 on February 07, 2021 15:06.