RequestInit is not defined in typescript typings
See original GitHub issueThanks for this amazing project! Loving it! A small detail:
When using apollo-client in typescript the RequestInit
is not defined.
It also references the graphql library which typings is not a part of the project.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:26 (12 by maintainers)
Top Results From Across the Web
RequestInit | typescript - v3.7.7
A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's...
Read more >Cannot find name 'Headers', 'RequestInit', 'Response'
ts(19,66): error TS2304: Cannot find name 'Response'. I don't understand why, because I think I'm not using this modules in my project. Thanks!...
Read more >The starting point for learning TypeScript
Find TypeScript starter projects: from Angular to React or Node.js and CLIs.
Read more >TypeScript Types - Rest Hooks
Represents a function that does actual fetch. Convenient type to specify only part of the function's type. export type FetchFunction ...
Read more >node-fetch Error [ERR_REQUIRE_ESM]: require() of ES ...
node-fetch Error [ERR_REQUIRE_ESM]: require() of ES Module not supported ... Do this if using TYPESCRIPT import { RequestInfo, RequestInit } from ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Why close this, I’m facing this problem and I don’t want to include dom lib to my server project
Here is my solution: