Skip to content

Commit 4821d5c

Browse files
committed
doc: fix getCACertificates() types and remove invalid escapes
1 parent 51c1ec6 commit 4821d5c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

doc/api/tls.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2316,16 +2316,16 @@ added:
23162316
- v22.15.0
23172317
-->
23182318

2319-
* `options` {string|Object|undefined}\
2320-
Optional. If a string, it is treated as the `type` of certificates to return.\
2319+
* `options` {string|Object|undefined}
2320+
Optional. If a string, it is treated as the `type` of certificates to return.
23212321
If an object, it may contain:
2322-
* `type` {string} The type of CA certificates to return. One of `"default"`, `"system"`, `"bundled"`, or `"extra"`.\
2322+
* `type` {string} The type of CA certificates to return. One of `"default"`, `"system"`, `"bundled"`, or `"extra"`.
23232323
**Default:** `"default"`.
23242324
* `as` {string} The format of returned certificates. One of:
23252325
* `"buffer"` (default): Returns an array of certificate data as `Buffer` objects.
2326-
* `"x509"`: Returns an array of \[`X509Certificate`]\[] instances.
2326+
* `"x509"`: Returns an array of [`X509Certificate`][] instances.
23272327

2328-
* Returns: {Array.\<Buffer|X509Certificate>}\
2328+
* Returns: {Array.<Buffer|X509Certificate>}
23292329
An array of certificates in the specified format.
23302330

23312331
* `"default"`: return the CA certificates that will be used by the Node.js TLS clients by default.

0 commit comments

Comments
 (0)