Typescript.js

Typescript.js is a super-set of JavaScript, it doesn’t have a default template - there would be too many. Instead, other projects have their own TypeScript bootstrap templates with their own context. These projects provide templates which include TypeScript support.

handbook.pdf

Basic

object is a type that represents the non-primitive type, i.e. anything that is not number, string, boolean, symbol, null, or undefined.

Types

Interfaces

Functions

Literal Types

Unions and Intersection Types

Classes

Enums

Generics

Handbook

React.js

Install create-react-app

node -v

ls /usr/local/lib/node_modules/

sudo npm install -g create-react-app

Create our new project, Project layout:

create-react-app react-with-ts --template=typescript
react-with-ts/
  ├─ .gitignore
  ├─ node_modules/
  ├─ public/
  ├─ src/
  │  └─ ...
  ├─ package.json
  ├─ tsconfig.json
  
  └─ tslint.json