TypeScript
//type script config, which version to convert to "target": "es6",
{
"compilerOptions": {
"outDir": "./src",
"rootDir": "./src-tsc",
"allowJs": true,
"target": "es6",
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": false
},
"include": [
"./src-tsc"
]
}
TypeScript subtyping is by structural equivalency.
Also allow extends,
the structural equivalency
Resources:
https://github.com/Microsoft/TypeScript-React-Starter/tree/master/src
- Search if a package's type definition if available or not
https://microsoft.github.io/TypeSearch/
- VS Code uses the TypeScript language service for its JavaScript code intelligence and it has a feature called Automatic Type Acquisition (ATA). ATA pulls down the npm Type Declaration files (
*.d.ts
) for the npm modules referenced in thepackage.json
.
https://code.visualstudio.com/docs/nodejs/reactjs-tutorial
- TypeScript and React
https://charleslbryant.gitbooks.io/hello-react-and-typescript/content/TypeScriptAndReact.html
- TypeScript Deep Dive