Skip to content

(bug) short-hand module declaration not working in combination with 'noImplicitAny' #10191

Closed
@choeller

Description

@choeller

TypeScript Version: 2.1.0-dev.2016080

Code
Trying to declare a module with the new short-hand syntax like this:

  declare module 'lodash';

leads to the following TypeScript-Compiler error

error TS7005: Variable ''lodash'' implicitly has an 'any' type.

I also can't find a way to make this "explicit any".

Expected behavior:

new shorthand syntax for module-declaration should also work with 'noImplicitAny' activated

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in 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