TomTom Maps for JavaScript
    Preparing search index...

    Type Alias EntryModeSliceName

    EntryModeSliceName: {
        [K in keyof ToolState]: ToolState[K] extends EntryModeSlice ? K : never
    }[keyof ToolState]

    Compile-time union of ToolState keys whose slice supports EntryMode. Names match the ToolState keys exactly — routing (not routes), customGeometries (not geometries) — so the slice name in the tool API never drifts from the property on state.

    Auto-grows when a new slice implements setEntryMode: the union picks up the new key, and the runtime list ENTRY_MODE_SLICE_NAMES fails to type-check until the key is added there too.