Skip to content

ES6 methods don't work with typescript syntax check #11621

Closed
@waderyan

Description

@waderyan

From @m3l7 on October 11, 2016 14:36

  • VSCode Version: 1.6
  • OS Version: fedora 23

my current tsconfig.json is

  {
      "compilerOptions": {
          "target": "es6",
          "module": "commonjs",
          "sourceMap": true,
          "outDir": "src",
          "typeRoots": ["./typings/modules", "./typings/globals"]
      },
      "include":[
          "src/**/*"
      ]
  }

let's say I have this:

  Object.assign({});

if I compile the project with tsc --lib es6 or with a gulp task, it works correctly. However, vscode syntax check gives:

  [ts] Property 'assign' does not exist on type 'ObjectConstructor'

Copied from original issue: microsoft/vscode#13514

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