From 1fe75dc2b011c4a6aa37214b4175d5ebe895a31c Mon Sep 17 00:00:00 2001 From: Dmitry Semigradsky Date: Fri, 23 Jun 2023 22:17:23 +0300 Subject: [PATCH] doc: unnest `mime` and `MIMEParams` from MIMEType constructor PR-URL: https://github.com/nodejs/node/pull/47950 Reviewed-By: Luigi Pinca --- doc/api/util.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index a3119ee2602065..e468df9c2edbc0 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -1074,7 +1074,7 @@ console.log(String(myMIME)); // Prints: text/plain ``` -#### `mime.type` +### `mime.type` * {string} @@ -1106,7 +1106,7 @@ console.log(String(myMIME)); // Prints: application/javascript ``` -#### `mime.subtype` +### `mime.subtype` * {string} @@ -1138,7 +1138,7 @@ console.log(String(myMIME)); // Prints: text/javascript ``` -#### `mime.essence` +### `mime.essence` * {string} @@ -1171,7 +1171,7 @@ console.log(String(myMIME)); // Prints: application/javascript;key=value ``` -#### `mime.params` +### `mime.params` * {MIMEParams} @@ -1179,7 +1179,7 @@ Gets the [`MIMEParams`][] object representing the parameters of the MIME. This property is read-only. See [`MIMEParams`][] documentation for details. -#### `mime.toString()` +### `mime.toString()` * Returns: {string} @@ -1188,7 +1188,7 @@ The `toString()` method on the `MIMEType` object returns the serialized MIME. Because of the need for standard compliance, this method does not allow users to customize the serialization process of the MIME. -#### `mime.toJSON()` +### `mime.toJSON()` * Returns: {string} @@ -1219,7 +1219,7 @@ console.log(JSON.stringify(myMIMES)); // Prints: ["image/png", "image/gif"] ``` -### Class: `util.MIMEParams` +## Class: `util.MIMEParams`