option field in objecttype typescript code example
Example 1: use type as value typescript
Typescript interfaces aren''t being compiled into the js output, and you can not use them at runtime
Example 2: typescript object type
//is not strict mode
let endedCoord: {x: number, y: number} = {
x: -1,
y: -1,
}