MCPcopy
hub / github.com/simstudioai/sim / isDocumentTagArray

Function isDocumentTagArray

apps/sim/lib/workflows/subblocks/display.ts:123–134  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

121}
122
123const isDocumentTagArray = (value: unknown): value is DocumentTagItem[] => {
124 if (!Array.isArray(value) || value.length === 0) return false
125 const firstItem = value[0]
126 return (
127 typeof firstItem === 'object' &&
128 firstItem !== null &&
129 'tagName' in firstItem &&
130 'value' in firstItem &&
131 !('tagValue' in firstItem) &&
132 typeof firstItem.tagName === 'string'
133 )
134}
135
136const isFilterConditionArray = (value: unknown): value is FilterRule[] => {
137 if (!Array.isArray(value) || value.length === 0) return false

Callers 1

getDisplayValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected