(value: string)
| 2 | import * as typer from 'es-content-type' |
| 3 | |
| 4 | function normalizeType(value: string) { |
| 5 | // parse the type |
| 6 | const type = typer.parse(value) |
| 7 | type.parameters = {} |
| 8 | // reformat it |
| 9 | return typer.format(type) |
| 10 | } |
| 11 | |
| 12 | function tryNormalizeType(value: string) { |
| 13 | if (!value) return null |
no test coverage detected