Skip to content

Object.create({} | null) #13932

@Riim

Description

@Riim

TypeScript Version: 2.2.0

Code:

Object.create(parent && parent._attributeListMap || null)

Expected behavior:
Ok

Actual behavior:
2.2.0 - error TS2345: Argument of type '{ [elName: string]: Object; } | null' is not assignable to parameter of type 'object'

2.1.5 - Ok

Metadata

Metadata

Assignees

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