TomTom Maps for JavaScript
    Preparing search index...

    Type Alias MapRequestTransform

    MapRequestTransform: (
        request: RequestParameters,
        resourceType?: ResourceType,
    ) => RequestParameters | Promise<RequestParameters>

    Holds or rewrites a request the map makes, once the SDK has built it.

    It gets the request the SDK prepared, with its URL, headers and credentials, and returns the one to send: the same object, a changed copy or a new one. Return a promise to hold the request until it resolves.

    Type Declaration