Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Don't export GraphQLClientRequestHeaders in src/index.ts #626

Closed
janhlavin opened this issue Dec 1, 2023 · 1 comment
Closed

Don't export GraphQLClientRequestHeaders in src/index.ts #626

janhlavin opened this issue Dec 1, 2023 · 1 comment

Comments

@janhlavin
Copy link

Description

I can't use import { GraphQLClientRequestHeaders } from "graphql-request", because I get error: TS2614: Module '"graphql-request"' has no exported member 'GraphQLClientRequestHeaders'

type GraphQLClientRequestHeaders doesn't export in src/index.ts

Reproduction Steps/Repo Link

I configure project by Pure ESM package:

  • in package.json
{
  "type": "module",
  "engines": [
    "node": ">=16"
  ],
  "dependecies": {
    "graphql-request": "^6.1.0"
  }
}
  • in tsconfig.json
{
  "compilerOptions": {
    "module": "node16",
    "moduleResolution": "node16"
  }
}
@jonkoops jonkoops self-assigned this Dec 18, 2023
@jonkoops
Copy link
Collaborator

This has been fixed under #616

@jonkoops jonkoops closed this as not planned Won't fix, can't repro, duplicate, stale Dec 18, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants