This content originally appeared on DEV Community and was authored by Kiran J
Some of the tips in migrating existing JavaScript code to TypeScript.
JavaScript
var name = "test";
TypeScript
//declare fieldName as string
let name: string ;
name = "test";
This content originally appeared on DEV Community and was authored by Kiran J