Skip to content

IntelliSense For Untyped Imports in TypeScript Files #15286

@mjbvz

Description

@mjbvz

From

TypeScript Version: 2.3.1-insider0416

Code

  1. npm install snoowrap
  2. In a ts file:
import * as snoowrap from 'snoowrap'

snoowrap.|
  1. Trigger intellisense at the |

Expected behavior:
The import is of an any type so no type checking is performed on it.

However, if we instead use a js file with the exact same contents, we do get some suggestions:

screen shot 2017-04-19 at 10 56 02 pm

I would also expect these suggestions in TypeScript.

I was actually surprised that TypeScript picked up this IntelliSense for an untyped module in the first place. When was this feature added?

Actual behavior:
No suggestions are shown. This is consistent with the intellisense for other any types

Metadata

Metadata

Assignees

No one assigned

    Labels

    VS Code TrackedThere is a VS Code equivalent to this issueWorking as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions