On this page

Type Alias PropertyCallback

PropertyCallback: (
    a: {
        key: string;
        path: [string, "paint" | "layout", string];
        reference: StylePropertySpecification | null;
        set: (
            a:
                | PropertyValueSpecification<unknown>
                | DataDrivenPropertyValueSpecification<unknown>,
        ) => void;
        value:
            | PropertyValueSpecification<unknown>
            | DataDrivenPropertyValueSpecification<unknown>;
    },
) => void

Type Declaration

Was this helpful?
SDK JS
Reference
PropertyCallback