Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Been looking into TypeScript's other tsconfig options, and I realized it would probably be of good use for me to try enabling more of the strict features that aren't already enabled with the 'strict' flag. Was first looking into enabling 'noUncheckedIndexAccess', to which I then discovered one I hadn't heard of yet, 'noPropertyAccessFromIndexSignature'! This heavily helps with the NBT primitive type validation for the library's API parameter types, making use of the original index signature-based checks. This helps out so much, because it prevents you from accessing non-existant properties on the index signature-implemented structures, unless you use index-based accessing. https://www.typescriptlang.org/tsconfig#noUncheckedIndexedAccess https://www.typescriptlang.org/tsconfig#noPropertyAccessFromIndexSignature https://www.npmjs.com/package/@tsconfig/strictest #28
- Loading branch information