TomTom Maps for JavaScript
    Preparing search index...

    Type Alias DatasetInput<D>

    DatasetInput: Omit<D, "id" | "timestamp"> & { id?: string; timestamp?: number }

    What a caller passes to add a dataset: the dataset itself, its id and timestamp optional.

    Type Parameters

    • D extends AnyDataset

    Type Declaration

    • Optionalid?: string

      The id to give the dataset, suffixed -2, -3, … if another dataset has it. Defaults to the slice's prefix and a counter, such as places-0.

    • Optionaltimestamp?: number

      When the data was captured, in milliseconds since the epoch. Defaults to now.