From ca2ae86bd75ddef1370bc824519c8cc3825e0c47 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 273cb15eae245f..2b8f6c05d25899 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -1080,7 +1080,7 @@ console.log(String(myMIME)); // Prints: text/plain ``` -#### `mime.type` +### `mime.type` * {string} @@ -1112,7 +1112,7 @@ console.log(String(myMIME)); // Prints: application/javascript ``` -#### `mime.subtype` +### `mime.subtype` * {string} @@ -1144,7 +1144,7 @@ console.log(String(myMIME)); // Prints: text/javascript ``` -#### `mime.essence` +### `mime.essence` * {string} @@ -1177,7 +1177,7 @@ console.log(String(myMIME)); // Prints: application/javascript;key=value ``` -#### `mime.params` +### `mime.params` * {MIMEParams} @@ -1185,7 +1185,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} @@ -1194,7 +1194,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} @@ -1225,7 +1225,7 @@ console.log(JSON.stringify(myMIMES)); // Prints: ["image/png", "image/gif"] ``` -### Class: `util.MIMEParams` +## Class: `util.MIMEParams`