i saw this in the someone else's code. (this is props of react component.) i know & is AND logical operater. i think & has another meaning in this code. when i use center = {{latitude: number,longitude: number},{zoom: 2, tilt: 2,}} it is not worked and i know not match vaild format with typescript error.
- what is & mean in this?
- how to vaild object format in center props(i use react.)?
export interface Coord {
latitude: number;
longitude: number;
}
center?: Coord & { zoom?: number; tilt?: number; bearing?: number };