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
shouldn't you just make your hand-authored .d.ts files .ts files?
Yes, probably. We currently have a fairly coherent posture that .d.ts files are not inputs—they don't get copied to outDir of a compilation. We probably wouldn’t change the .d.ts checking behavior without more broadly rethinking this position.
Action: leave issue open, remove from project board, update status on issue
wait, is that really that bad? Looks unexpected if you're not familiar with the type definition or coming from another language and assume Map keys are always stringy.
could we have two overloads, one with two mandatory type params?
no, because we couldn't get the default <any, any>, you get unknown
would this matter if we were ever allowed to have strict libs with unknown?
that might help a little
we traded one problem for another, maybe let's not undo it again
sometimes when you do subtype reduction you want to get rid of the any if there's something more informed to use
outDir
of a compilation. We probably wouldn’t change the .d.ts checking behavior without more broadly rethinking this position.Map<string>
<any, any>
, you getunknown
unknown
?any
if there's something more informed to usetry/catch
whenstrictNullChecks
andnoImplicitAny
are enabled #45592The text was updated successfully, but these errors were encountered: