typescript object props code example
Example: typescript object type
//is not strict mode
let endedCoord: {x: number, y: number} = {
x: -1,
y: -1,
}
//is not strict mode
let endedCoord: {x: number, y: number} = {
x: -1,
y: -1,
}