FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

packages/isomorphic-unfetch/index.d.ts - Exports and export assignments are not permitted in module augmentations. · Issue #82 · developit/unfetch · GitHub

Repository navigation

packages/isomorphic-unfetch/index.d.ts - Exports and export assignments are not permitted in module augmentations. #82

Description

When trying to compile using Typescript, I got the following error:

node_modules/isomorphic-unfetch/index.d.ts:18:3 - error TS2666: Exports and export assignments are not permitted in module augmentations.

18   export = unfetch;
     ~~~~~~

I don't really understand what's happening but I managed to work around it by manually deleting line 18.

In case its helpful to anybody, steps to reproduce:
Typescript Version 2.9.2

cd node_modules/isomorphic-unfetch
echo "{}" > tsconfig.json
tsc

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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


      Back | FazBrowse Home | New Git URL