typescript type array either string or null code example
Example 1: how to declare a boolean in typescript
let isDone: boolean = false;
Example 2: typescript object type
//is not strict mode
let endedCoord: {x: number, y: number} = {
x: -1,
y: -1,
}