Skip to content

Test: Actions for TypeScript quick fixes #37181

@mjbvz

Description

@mjbvz

#34787

Complexity: 1
OS

Overview
For imports in TS files such as:

import * as _ from 'lodash'

Typescript will now generate a quickfix to install @types/lodash if it is not already installed

Testing

  1. In an empty folder with a package.json
  2. In a TS file, write out a import for an npm package that you know has @types, such as express or lodash
  3. On the import statement, there should be a quick fix for installing these types
  4. Select this and confirm it installs the types, also updating the package.json if one exists

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions