TomTom Maps for JavaScript
    Preparing search index...

    Type Alias CodeExecutionConfig

    Tunes analyseData / processData sandbox execution. Where the code runs is not configurable: it is chosen by environment — a sandboxed, opaque-origin iframe + Web Worker in the browser (no DOM/storage access, no network via CSP, terminable on timeout), and the main thread in Node / SSR (where that boundary has no equivalent). The options below only tune the isolated browser run.

    type CodeExecutionConfig = {
        loadWorkerLibrarySource?: () => string | Promise<string>;
        timeoutMs?: number;
    }
    Index

    Properties

    loadWorkerLibrarySource?: () => string | Promise<string>

    Optional override of the worker's library source. By default the SDK loads its own inlined turf/h3 UMD (a separate lazy chunk), so this is rarely needed — supply it only to pin a specific build or add libraries. Return UMD/IIFE JavaScript that defines self.turf and self.h3 (string or Promise of one).

    timeoutMs?: number

    Wall-clock budget per isolated (browser) run, in ms. Default: 5000.