Skip to content

Commit

Permalink
Add comment about Undici request types
Browse files Browse the repository at this point in the history
Add link to DefinitelyTyped issue with missing exported globals.
  • Loading branch information
jliuhtonen committed Apr 21, 2024
1 parent 868ba34 commit 733c34a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/types/request.ts
@@ -1,3 +1,9 @@
/**
* Undici types need to be here because they are not exported to globals by @types/node.
* See https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/69408
*
* After the types are exported to globals, the Undici types can be removed from here.
*/
type UndiciHeadersInit =
| string[][]
| Record<string, string | readonly string[]>
Expand Down

0 comments on commit 733c34a

Please sign in to comment.