November 2019
Beginner
804 pages
20h 1m
English
In the official documentation, the Vue team recommends that we configure the TypeScript compiler as follows:
{
"compilerOptions": {
// this aligns with Vue's browser support
// feel free to go higher if you don't need to support older // environments
"target": "es5",
// we've seen how stricter inference is beneficial
"strict": true,
// to leverage tree shaking with Webpack, rollup and // other bundlers
"module": "es2015",
"moduleResolution": "node"
}
}
The strict mode and, in particular, the implied noImplicitThis: true option, allow us to benefit from type checking this when writing Vue components.
Read now
Unlock full access