@maplibre/native-ffi
    Preparing search index...

    Interface StyleExpressionOptions

    Options for parsing a style expression.

    See mln_style_expression_options in the C API reference.

    interface StyleExpressionOptions {
        expectedType?: StyleExpressionType;
    }
    Index
    expectedType?: StyleExpressionType

    The type that the expression must produce. A string type coerces the result to a string, as a string layer property does; every other type asserts it. Without it, the expression keeps the type it infers.