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

Function isTemplateNode

apps/sim/lib/table/__tests__/sql.test.ts:29–37  ·  view source on GitHub ↗
(n: unknown)

Source from the content-addressed store, hash-verified

27 | undefined
28
29function isTemplateNode(n: unknown): n is { strings: ArrayLike<string>; values: unknown[] } {
30 return (
31 typeof n === 'object' &&
32 n !== null &&
33 'strings' in n &&
34 'values' in n &&
35 Array.isArray((n as { values: unknown[] }).values)
36 )
37}
38
39function isRawNode(n: unknown): n is { rawSql: string } {
40 return typeof n === 'object' && n !== null && 'rawSql' in n

Callers 1

renderSqlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected