(format: string | undefined)
| 308 | } |
| 309 | |
| 310 | function mimeTypeFromAudioFormat(format: string | undefined): string { |
| 311 | if (!format) return 'audio/mpeg' |
| 312 | if (format === 'mp3') return 'audio/mpeg' |
| 313 | return `audio/${format}` |
| 314 | } |
| 315 | |
| 316 | function asRecord(value: unknown): UnknownRecord | undefined { |
| 317 | if (!value || typeof value !== 'object' || Array.isArray(value)) { |
no outgoing calls
no test coverage detected