menu
102 tokens
Objects
Fixed static shapes.
Objects
1const relay = {2 name: "zurich",3 active: true,4};5 6relay.name;what doees
type Point = { x: number; y: number }mean?can I pass
{ x: 0, y: 1, z: 2 }to a function expecting aPoint?(no, has to match exactly, in order)
but you can pass it to
Dynamic<Point>orinterface Point(same thing)deep readonly
const is not readonly (just like in TS)
const is however overwrite stable