MCPcopy Index your code
hub / github.com/simstudioai/sim / normalizeVantaPageInfo

Function normalizeVantaPageInfo

apps/sim/tools/vanta/utils.ts:322–330  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

320}
321
322export function normalizeVantaPageInfo(value: unknown): VantaPageInfo | null {
323 if (!isRecordLike(value)) return null
324 return {
325 startCursor: getString(value.startCursor),
326 endCursor: getString(value.endCursor),
327 hasNextPage: getBoolean(value.hasNextPage) ?? false,
328 hasPreviousPage: getBoolean(value.hasPreviousPage) ?? false,
329 }
330}
331
332function normalizeVantaOwner(value: unknown): VantaOwner | null {
333 if (!isRecordLike(value)) return null

Callers 1

getVantaListResultsFunction · 0.85

Calls 3

isRecordLikeFunction · 0.90
getStringFunction · 0.70
getBooleanFunction · 0.70

Tested by

no test coverage detected