-
Default
noUncheckedIndexedAccess
totrue
(#7)This change sets the
noUncheckedIndexedAccess
compiler option totrue
by default.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