Skip to content

Failure in 'lib.d.ts' with '--strictNullChecks' #9244

Closed
@DanielRosenwasser

Description

@DanielRosenwasser

Found in nightlies (Version 1.9.0-dev.20160618-1.0)

  1. Create an empty test.ts file.
  2. Create the following tsconfig.json in the same directory:
{
    "compilerOptions": {
        "strictNullChecks": true
    },
    "files": ["./test.ts"]
}
  1. Run tsc from the same directory.
../AppData/Roaming/npm/node_modules/typescript/lib/lib.d.ts(18107,5): error TS2411: Property 'alpha' of type 'boolean | undefined' is not assignable to string index type 'boolean | string'.
../AppData/Roaming/npm/node_modules/typescript/lib/lib.d.ts(18108,5): error TS2411: Property 'willReadFrequently' of type 'boolean | undefined' is not assignable to string index type 'boolean | string'.
../AppData/Roaming/npm/node_modules/typescript/lib/lib.d.ts(18109,5): error TS2411: Property 'storage' of type 'boolean | undefined' is not assignable to string index type 'boolean | string'.

Basically there are issues with index signatures and optional properties.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions