Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.2.1 Insiders Index signature is missing in type '{}'.' #14136

Closed
mjbvz opened this issue Feb 17, 2017 · 0 comments
Closed

2.2.1 Insiders Index signature is missing in type '{}'.' #14136

mjbvz opened this issue Feb 17, 2017 · 0 comments
Assignees
Labels
Fixed A PR has been merged for this issue High Priority VS Code Tracked There is a VS Code equivalent to this issue

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Feb 17, 2017

TypeScript Version: 2.2.1-insiders.2017.0217

{
    "compilerOptions": {
        "strictNullChecks": true
    }
}
const test: { [kind: string]: string } = Object.create(null); 

Expected behavior:
In previous 2.2.1 02/09 insiders, this was not an error. It also worked without an error in TS 2.1.6

Actual behavior:
Error:

file: 'file:///Users/matb/projects/sand/box.ts'
severity: 'Error'
message: 'Type 'object' is not assignable to type '{ [kind: string]: string; }'.
  Index signature is missing in type '{}'.'
at: '2,7'
source: 'ts'
@mjbvz mjbvz added High Priority VS Code Tracked There is a VS Code equivalent to this issue labels Feb 17, 2017
mhegazy added a commit that referenced this issue Feb 18, 2017
Fix #14136: Make `Object.create` return `any` all the time
@mhegazy mhegazy added this to the TypeScript 2.2.1 milestone Feb 18, 2017
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Feb 18, 2017
aozgaa pushed a commit to aozgaa/TypeScript that referenced this issue Mar 1, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Fixed A PR has been merged for this issue High Priority VS Code Tracked There is a VS Code equivalent to this issue
Projects
None yet
Development

No branches or pull requests

2 participants