This is the documentation of version 0.56.0. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Variable toolStateToWhereContextConst

    toolStateToWhereContext: (
        state: ToolState,
        options?: ToolExecuteOptions,
    ) => WhereContext

    Adapts the live ToolState to the narrow WhereContext the resolver depends on. Keeping this mapping in one place is what lets resolveAreas stay testable without a ToolState.

    Type Declaration