镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Description

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.

Activity

  1. mhegazy commented on Jun 18, 2016

    @mhegazy
    Contributor

    Submitted a fix to master to unblock the nightly. investigating why our tests did not catch this.

  2. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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