MCPcopy Create free account
hub / github.com/TanStack/cli / sanitizeIdList

Function sanitizeIdList

packages/cli/src/cli.ts:80–88  ·  view source on GitHub ↗
(values: Array<string>)

Source from the content-addressed store, hash-verified

78}
79
80function sanitizeIdList(values: Array<string>) {
81 return Array.from(
82 new Set(
83 values
84 .map((value) => sanitizeId(value))
85 .filter((value): value is string => Boolean(value)),
86 ),
87 )
88}
89
90const AGENT_FLAG = '--agent'
91

Callers 3

cliFunction · 0.85

Calls 1

sanitizeIdFunction · 0.85

Tested by

no test coverage detected