MCPcopy Index your code
hub / github.com/callstack/agent-device / isStructuredBatchCommandName

Function isStructuredBatchCommandName

src/batch-policy.ts:49–51  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

47const structuredBatchCommandNames = new Set<string>(STRUCTURED_BATCH_COMMAND_NAMES);
48
49function isStructuredBatchCommandName(command: string): command is StructuredBatchCommandName {
50 return structuredBatchCommandNames.has(command);
51}
52
53export function normalizeBatchCommandName(command: unknown): string {
54 return typeof command === 'string' ? command.trim().toLowerCase() : '';

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected