Type Alias TUpdateState<T>

TUpdateState: T extends { __type: infer U }
    ? U extends keyof MapElementToUpdateState
        ? MapElementToUpdateState[U]
        : never
    : T extends string
        ? T extends keyof MapElementToUpdateState
            ? MapElementToUpdateState[T]
            : Record<string, any>
        : never

The type for updating the state of map elements (colors, texts, etc.). Accepts partial state updates for all element types.

Type Parameters