(input: string | undefined)
| 57 | * can produce their own "invalid" UX (CLI exit, route validation, etc.). |
| 58 | */ |
| 59 | export function normalizeResolutionFlag(input: string | undefined): CanvasResolution | undefined { |
| 60 | if (!input) return undefined; |
| 61 | const lowered = input.toLowerCase(); |
| 62 | if ((VALID_CANVAS_RESOLUTIONS as readonly string[]).includes(lowered)) { |
| 63 | return lowered as CanvasResolution; |
| 64 | } |
| 65 | return RESOLUTION_ALIASES[lowered]; |
| 66 | } |
| 67 | |
| 68 | export interface TimelineElementBase { |
| 69 | id: string; |
no outgoing calls
no test coverage detected