@duplojs/utils 1.4.47 → 1.4.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Provides a map that resolves file extensions to their MIME types.
3
+ *
4
+ * **Supported call styles:**
5
+ * - Access: `mimeType.get(extension)` -> returns the MIME type or undefined
6
+ *
7
+ * Extensions are stored without the leading dot and should be passed in lower case.
8
+ * When an extension is not present, the map returns `undefined`.
9
+ *
10
+ * ```ts
11
+ * const jsonType = mimeType.get("json");
12
+ * // jsonType: "application/json"
13
+ * const svgType = mimeType.get("svg");
14
+ * // svgType: "image/svg+xml"
15
+ * const unknownType = mimeType.get("unknown");
16
+ * // unknownType: undefined
17
+ * ```
18
+ *
19
+ * @see https://utils.duplojs.dev/en/v1/api/common/mimeType
20
+ *
21
+ */
22
+ export declare const mimeType: Map<string, string>;