Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: