Skip to content

Typescript compiler errors on React Native #88

Open
@sebqq

Description

@sebqq

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.

Thank you so much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions