tiled-types
tiled-types copied to clipboard
TiledObject.properties is optional
We've noticed that objects without properties will not have a properties key initialized to [] as per the types.
Can we update the types as follow ?
/**
* @see https://doc.mapeditor.org/en/stable/reference/json-map-format/#object
*/
export interface TiledObject {
ellipse?: boolean;
gid?: number;
height: number;
id: number;
name: string;
point?: boolean;
polygon?: Point[];
polyline?: Point[];
- properties: TiledProperty[];
+ properties?: TiledProperty[];
Using tiled v1.5.0