Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@seek-oss-ci seek-oss-ci released this 25 May 01:02
· 1 commit to master since this release
0aa6861

Major Changes

  • Default noUncheckedIndexedAccess to true (#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