UNPKG

@scalar/oas-utils

Version:

Open API spec and Yaml handling utilities

8 lines 547 B
/** * Normalizes a MIME type to a standard format. * * Input: application/problem+json; charset=utf-8 * Output: application/json */ export declare function normalizeMimeType(contentType?: string): `application/json${string}` | `application/xml${string}` | `text/plain${string}` | `text/html${string}` | `application/octet-stream${string}` | `application/x-www-form-urlencoded${string}` | `multipart/form-data${string}` | `*/*${string}` | `application/vnd.${string}+json${string}` | undefined; //# sourceMappingURL=normalize-mime-type.d.ts.map