docs: backslash escape parametrized TypeScript types (#41693)

This commit is contained in:
Erick Zhao 2024-03-26 04:28:47 -07:00 committed by GitHub
parent 83777ac83f
commit 1b80911417
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 47 additions and 47 deletions

View file

@ -10,7 +10,7 @@
`"text/html"`. Setting `mimeType` would implicitly set the `content-type`
header in response, but if `content-type` is already set in `headers`, the
`mimeType` would be ignored.
* `headers` Record<string, string | string[]> (optional) - An object containing the response headers. The
* `headers` Record\<string, string | string[]\> (optional) - An object containing the response headers. The
keys must be string, and values must be either string or Array of string.
* `data` (Buffer | string | ReadableStream) (optional) - The response body. When
returning stream as response, this is a Node.js readable stream representing