typescript preset babel code example
Example 1: @babel/preset-typescript
npm install --save-dev @babel/preset-typescript
Example 2: typescript with babel
npm install --save-dev typescript @babel/core @babel/cli @babel/plugin-proposal-class-properties @babel/preset-env @babel/preset-typescript