Type Alias TUpdateState<T>

TUpdateState<T>: T extends "walls"
    ? Partial<Omit<TGeometryState, "interactive" | "hoverColor" | "type">>
    : T extends Marker
        ? Partial<TMarkerState>
        : T extends Label
            ? Partial<TLabelState>
            : T extends Space | MapObject
                ? Partial<TGeometryState>
                : T extends string
                    ? Record<string, any>
                    : never

The type for updating the state of map elements (colors, texts, etc.).

Type Parameters

  • T