cel-ts - v0.1.0-alpha
    Preparing search index...

    Interface EnvOptions

    Options used to configure an Env instance.

    interface EnvOptions {
        constants?: readonly Constant[];
        container?: string;
        disableStandardLibrary?: boolean;
        disableTypeChecking?: boolean;
        enumValuesAsInt?: boolean;
        functions?: readonly (Function | FunctionDecl)[];
        macros?: readonly Macro[];
        registry?: Registry;
        structs?: readonly Struct[];
        typeProvider?: TypeProvider;
        variables?: readonly Variable[];
    }
    Index

    Properties

    constants?: readonly Constant[]

    Constants to declare in the environment

    container?: string

    Container name for identifier resolution

    disableStandardLibrary?: boolean

    Disable standard library registration

    disableTypeChecking?: boolean

    Disable type checking

    enumValuesAsInt?: boolean

    Treat enum values as ints (legacy semantics)

    functions?: readonly (Function | FunctionDecl)[]

    Functions (with overloads) to register

    macros?: readonly Macro[]

    Additional macros to register for parsing

    registry?: Registry

    Protobuf-es Registry used for type resolution. When provided, creates a ProtobufTypeProvider and enables Any auto-unpack.

    structs?: readonly Struct[]

    Struct types to declare in the environment

    typeProvider?: TypeProvider

    Additional type provider (e.g., protobuf-backed types)

    variables?: readonly Variable[]

    Variables to declare in the environment