initialize normal object with string key no type typescript 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,
}