(value: string)
| 10 | } |
| 11 | |
| 12 | function tryNormalizeType(value: string) { |
| 13 | if (!value) return null |
| 14 | |
| 15 | try { |
| 16 | return normalizeType(value) |
| 17 | } catch (err) { |
| 18 | return null |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | function mimeMatch(expected: string | boolean, actual: string | boolean) { |
| 23 | // invalid type |
no test coverage detected