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?).
satisfies
in JSDoc#51753
@type
was used as the original name for JSDoc type assertions.@type
would have been a better syntax for what satisfies does.@cast
and@satisfies
, and@type
just stays on declarations.satisfies
@type
works seems fine.@type
or@param
.@satisfies
to also work in declaration positions - enforce the assignability check on, and also contextually type, the initializer expression(s?).Optimizations
Node
(Reduce polymorphism resulting from unstable Node shapes #51682) andSymbol
(Monomorphic Symbol access #51880)Signature
,Type
, more.FlowNode
s?new Blah()
, etc.)FlowNode
writeFile
is 16% of the time??? (MS Defender????)ts
namespace - but it has almost no code???const enum
preservation?emitFlags
is never set, so an|=
can't be immediately optimized.0
?The text was updated successfully, but these errors were encountered: