Hacker News new | ask | show | jobs
by e1g 1709 days ago
Yep, and in your own code you can tell TS to verify your property access with the setting `noPropertyAccessFromIndexSignature` (https://devblogs.microsoft.com/typescript/announcing-typescr...)

The TS crew did discuss having a "pedantic" mode, which is stricter than "strict", but I don't think it's on the roadmap any more.

1 comments

That one as well as the noUncheckedIndexedAccess ought to be defaults when in strict mode.