@bufbuild/cel
Version:
A CEL evaluator for ECMAScript
11 lines (10 loc) • 453 B
TypeScript
import { ScalarType } from "@bufbuild/protobuf";
import type { ScalarValue } from "@bufbuild/protobuf/reflect";
import type { CelValue } from "./type.js";
/**
* Converts a protobuf scalar value to a CEL value.
*
* This doesn't validate the value should match the type.
* The given value must match the scalar type. It will match if acquired from a Reflect type.
*/
export declare function celFromScalar(type: ScalarType, v: ScalarValue): CelValue;