Major Changes
-
Default
noUncheckedIndexedAccess
totrue
(#7)This change sets the noUncheckedIndexedAccess compiler option to
true
by default.This requires Typescript 4.1+
This flags potential issues with indexed access of arrays and records.
Before:
const a: string[] = []; const b = a[0]; // ^? const b: string
After:
const a: string[] = []; const b = a[0]; // ^? const b: string | undefined