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

Function isStringExpr

frontend/src/plugins/cel/types/simple.ts:98–100  ·  view source on GitHub ↗
(expr: SimpleExpr)

Source from the content-addressed store, hash-verified

96};
97
98export const isStringExpr = (expr: SimpleExpr): expr is StringExpr => {
99 return isConditionExpr(expr) && isStringOperator(expr.operator);
100};
101
102export const isRawStringExpr = (expr: SimpleExpr): expr is RawStringExpr => {
103 return expr.type === ExprType.RawString;

Callers 2

validateConditionFunction · 0.90
convertConditionFunction · 0.90

Calls 2

isStringOperatorFunction · 0.90
isConditionExprFunction · 0.85

Tested by

no test coverage detected