MCPcopy Create free account
hub / github.com/bytebase/bytebase / wrapCELExpr

Function wrapCELExpr

frontend/src/plugins/cel/logic/build.ts:139–144  ·  view source on GitHub ↗
(object: CELExpr["exprKind"])

Source from the content-addressed store, hash-verified

137};
138
139const wrapCELExpr = (object: CELExpr["exprKind"]): CELExpr => {
140 return create(ExprSchema, {
141 id: BigInt(seq.next()),
142 exprKind: object,
143 });
144};
145
146const wrapConstExpr = (value: number | string | boolean | Date): CELExpr => {
147 if (typeof value === "string") {

Callers 4

wrapConstExprFunction · 0.85
wrapListExprFunction · 0.85
wrapIdentExprFunction · 0.85
wrapCallExprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected