Skip to content

Commit ec30052

Browse files
authored
🤖 Merge PR DefinitelyTyped#74511 doc[http]: fix JSDoc typo of response.writeHead by @samuel871211
1 parent 37be23a commit ec30052

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎types/node/http.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ declare module "node:http" {
954954
* been transmitted are equal or not.
955955
*
956956
* Attempting to set a header field name or value that contains invalid characters
957-
* will result in a \[`Error`\]\[\] being thrown.
957+
* will result in a `Error` being thrown.
958958
* @since v0.1.30
959959
*/
960960
writeHead(

‎types/node/v20/http.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ declare module "http" {
901901
* been transmitted are equal or not.
902902
*
903903
* Attempting to set a header field name or value that contains invalid characters
904-
* will result in a \[`Error`\]\[\] being thrown.
904+
* will result in a `Error` being thrown.
905905
* @since v0.1.30
906906
*/
907907
writeHead(

‎types/node/v22/http.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ declare module "http" {
928928
* been transmitted are equal or not.
929929
*
930930
* Attempting to set a header field name or value that contains invalid characters
931-
* will result in a \[`Error`\]\[\] being thrown.
931+
* will result in a `Error` being thrown.
932932
* @since v0.1.30
933933
*/
934934
writeHead(

‎types/node/v24/http.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ declare module "http" {
939939
* been transmitted are equal or not.
940940
*
941941
* Attempting to set a header field name or value that contains invalid characters
942-
* will result in a \[`Error`\]\[\] being thrown.
942+
* will result in a `Error` being thrown.
943943
* @since v0.1.30
944944
*/
945945
writeHead(

0 commit comments

Comments
 (0)