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