Skip to content

Instantly share code, notes, and snippets.

@ynotdraw
Last active September 25, 2018 12:54
Show Gist options
  • Save ynotdraw/5cbb8c187a2bb0f66463f074c736aeb5 to your computer and use it in GitHub Desktop.
Save ynotdraw/5cbb8c187a2bb0f66463f074c736aeb5 to your computer and use it in GitHub Desktop.
Better types with VS Code and Ember

In package.json:

"@types/ember": "^2.8.32",
"@types/ember__test-helpers": "^0.7.0",

In jsconfig.json:

{
  "compilerOptions": {
    "target": "es6",
    "experimentalDecorators": true
  },
  "exclude": [
    "node_modules",
    "bower_components",
    "tmp",
    "vendor",
    ".git",
    "dist"
  ],
  "typeAcquisition": {
    "enable": true,
    "include": [
      "ember",
      "ember-data",
      "qunit",
      "ember-qunit"
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment