(value: unknown, field: string)
| 16 | export const TRELLO_API_BASE_URL = 'https://api.trello.com/1' |
| 17 | |
| 18 | function getRequiredString(value: unknown, field: string): string { |
| 19 | if (typeof value === 'string' && value.trim().length > 0) { |
| 20 | return value |
| 21 | } |
| 22 | |
| 23 | throw new Error(`Trello response is missing required field: ${field}`) |
| 24 | } |
| 25 | |
| 26 | function getOptionalString(value: unknown): string | null { |
| 27 | return typeof value === 'string' ? value : null |
no outgoing calls
no test coverage detected