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

Function isNumberFactor

frontend/src/plugins/cel/types/factor.ts:76–78  ·  view source on GitHub ↗
(factor: string)

Source from the content-addressed store, hash-verified

74 | TimestampFactor;
75
76export const isNumberFactor = (factor: string): factor is NumberFactor => {
77 return NumberFactorList.includes(factor as NumberFactor);
78};
79
80export const isStringFactor = (factor: string): factor is StringFactor => {
81 return StringFactorList.includes(factor as StringFactor);

Callers 8

getDefaultValueFunction · 0.90
ValueInputFunction · 0.90
setStringValueFunction · 0.90
setArrayValueFunction · 0.90
resolveEqualityExprFunction · 0.90
resolveCompareExprFunction · 0.90
resolveCollectionExprFunction · 0.90
validateConditionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected