-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
Found in nightlies (Version 1.9.0-dev.20160618-1.0
)
- Create an empty
test.ts
file. - Create the following
tsconfig.json
in the same directory:
{
"compilerOptions": {
"strictNullChecks": true
},
"files": ["./test.ts"]
}
- 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
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue