Skip to content

Instantly share code, notes, and snippets.

@seanpmaxwell
Last active October 31, 2018 03:34
Show Gist options
  • Save seanpmaxwell/7c76e6d3106812b61c5a8aa36ce0677c to your computer and use it in GitHub Desktop.
Save seanpmaxwell/7c76e6d3106812b61c5a8aa36ce0677c to your computer and use it in GitHub Desktop.
Enforce Type Safety in TypeScript
{
"compileOnSave": false,
"compilerOptions": {
"noImplicitAny": true, <--- Add this option
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "es2015",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment