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
I know I and a bunch of other folks in the Ember community (and probably others!) would be very interested in what you all land on in that conversation. We're trying to sort out a what a SemVer-compatible strategy for official adoption of types looks like—because even if TS doesn't do SemVer, projects which use it do—and at a minimum clearer expectations about what kinds of things will and won't change in a point release would be hugely helpful for us as we work through that!
strict is turned on by default when you write tsc --init
A lot of people don't use that command to initialize the tsconfig.json file, but instead copy an old or a Googled version. Then they miss out the great features because they don't know about them. I frequently see new projects created with the strict flag missing due to nescience.
Generic function composition
#29904
strict
mode is the best way to operate.strict
would be the default?strict
always brings new checks in.strict
modestrictFunctionTypes
.Current implementation might be better written as
Works really well... sometimes.
Doesn't work when you have contextually sensitive parameters.
Problem is we make no inferences for
A
, which jumps to the base constraint which isany[]
.Shouldn't it have been constrained to
unknown[]
?unknown[]
) instead of maintaining the input arity[unknown, unknown]
.So we're experimenting with a way to infer the shape for a spread-in type parameter. We're considering that a bug.
strict
by defaultstrict
by default" conversationtsconfig
-less projects were strictstrict
.checkJs
?strict
strict
is turned on by default when you writetsc --init
strict
mode off?strictNullChecks
andstrictFunctionTypes
.strict
.never[]
withstrictNullChecks
withoutnoImplicitAny
.strictNullChecks
.The text was updated successfully, but these errors were encountered: