We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello.
I keep getting following errors from TypeScript compilation (using react-fetchiung-library on React Native):
node_modules/react-fetching-library/lib/index.d.ts:15:19 - error TS2304: Cannot find name 'RequestCredentials'. 15 credentials?: RequestCredentials; ~~~~~~~~~~~~~~~~~~ node_modules/react-fetching-library/lib/index.d.ts:16:13 - error TS2304: Cannot find name 'RequestCache'. 16 cache?: RequestCache; ~~~~~~~~~~~~ node_modules/react-fetching-library/lib/index.d.ts:17:12 - error TS2304: Cannot find name 'RequestMode'. 17 mode?: RequestMode; ~~~~~~~~~~~ node_modules/react-fetching-library/lib/index.d.ts:18:22 - error TS2304: Cannot find name 'ReferrerPolicy'. 18 referrerPolicy?: ReferrerPolicy; ~~~~~~~~~~~~~~ node_modules/react-fetching-library/lib/index.d.ts:22:16 - error TS2304: Cannot find name 'RequestRedirect'. 22 redirect?: RequestRedirect; ~
Is there any types package that I need to install in order to get these typings on React Native?
I've tried @types/node, @types/request and @types/node-fetch but without any success.
@types/node
@types/request
@types/node-fetch
Thank you so much!
The text was updated successfully, but these errors were encountered:
It looks like I will need to define it in library, I will try to fix it later today.
For now you can add .d.ts file in your project with
type RequestCredentials = "include" | "omit" | "same-origin"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RequestRedirect = "error" | "follow" | "manual";
Sorry, something went wrong.
No branches or pull requests
Hello.
I keep getting following errors from TypeScript compilation (using react-fetchiung-library on React Native):
Is there any types package that I need to install in order to get these typings on React Native?
I've tried
@types/node
,@types/request
and@types/node-fetch
but without any success.Thank you so much!
The text was updated successfully, but these errors were encountered: