TomTom Maps for JavaScript
    Preparing search index...

    Type Alias Anything

    Anything: { [x: string]: unknown }

    Generic object type with string keys and unknown values.

    Used as a flexible type constraint for objects where the shape is not predetermined. Useful for extensible property objects or when accepting arbitrary user data.

    Type Declaration

    • [x: string]: unknown
    function processCustomData(data: Anything) {
    // Access properties dynamically
    console.log(data['customField']);
    }