Skip to content

DefinitelyTyped typings incompatible with ES6 emit: Import assignment #4170

@alexeagle

Description

@alexeagle

Similar to #2929

Using released TS 1.5.3,
Trying to type-check the ES6 emit for angular, I run into:

  angular2/typings/node/node.d.ts (273, 5): Import assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'import * as ns from "mod"', 'import {a} from "mod"' or 'import d from "mod"' instead.

Because of syntax here:
https://github.com/borisyankov/DefinitelyTyped/blob/983126e131a2b81739053d60e4bbdbb46d6577b7/node/node.d.ts#L425

Can this rule be relaxed? Do all typings need to be updated?

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions