.env in typescript code example
Example 1: .env typescript
npm install dotenv;
OR
yarn add dotenv;
import * as dotenv from 'dotenv';
//inside your starter code, do this
...
...
dotenv.config();
...
Example 2: enums in typescript
enum Direction {
Up = 1,
Down,
Left,
Right,
}