You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provides a contextual type in JavaScript without casting or calling a helper function - really nice.
It's unfortunate that @type was used as the original name for JSDoc type assertions. @type would have been a better syntax for what satisfies does.
Or @cast and @satisfies, and @type just stays on declarations.
But if you know you want to use satisfies
How should this work?
Expression positions the same way @type works seems fine.
What about declaration forms? Lots of examples of @type or @param.
We would like @satisfies to also work in declaration positions - enforce the assignability check on, and also contextually type, the initializer expression(s?).
Activity
[-]Design Meeting Notes, 12/19/2022[/-][+]Design Meeting Notes, 12/16/2022[/+]