TomTom Maps for JavaScript
    Preparing search index...

    Type Alias KnobValues<CONFIG, ID>

    KnobValues: { readonly [KNOB in ID]?: KnobInput<CONFIG, KNOB> }

    Knob values by id, as setKnobs takes them: a flat, JSON-safe record to store, ship as a preset or take from a language model.

    Type Parameters

    • CONFIG

      The module's configuration, which types each value by its knob's path.

    • ID extends string

      The knob ids of its catalogue. Any string takes any value, checked when set.

    const saved: KnobValues<RoutingModuleConfig, RoutingKnobId> = { widthPreset: 'l', 'waypoints.label.color': '#e63312' };