-
🤔 Question2 short questions!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
-
🤔 Question2 short questions!
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
It must be a
dependency
. If you set it as adevDependency
, your package consumers will not benefit from the types packaged in thets-toolbelt
- it will appear to be broken at first. They might have to installts-toolbelt
by hand, that's why you could enablepeerDependency
. But since twots-toobelt
versions can now cohabitate, it really only makes sense to add it as a directdependency
.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, becauseAt
will now yield theundefined
type when props don't exist (from version9
on) - where…