UNPKG

@bufbuild/cel

Version:

A CEL evaluator for ECMAScript

10 lines (9 loc) 491 B
import { type CelEnvOptions } from "./env.js"; import type { CelInput } from "./type.js"; /** * Convenience function that parses, plans, and executes a CEL expression in one call. * * This is the simplest way to evaluate a CEL expression, but for better performance * and reusability, consider using parse(), plan(), and execution separately. */ export declare function run(expr: string, bindings?: Record<string, CelInput>, envOptions?: CelEnvOptions): import("./error.js").CelResult;