jasonkuhrt / graphql-request

Minimal GraphQL client
MIT License
5.74k stars 307 forks source link

Typescript cannot find type `RequestOptions` #924

Closed tholander closed 2 weeks ago

tholander commented 3 weeks ago

Description

With graphql-request@^6 it was possible to import type RequestOptions and now it's not exported anymore

Reproduction Steps/Repo Link

  1. Create new Typescript project, install graphql-request
  2. In a file add import type { RequestOptions } from 'graphql-request';
  3. Typescript cannot find type
jasonkuhrt commented 2 weeks ago

It is exported: https://github.com/jasonkuhrt/graphql-request/blob/829028d22fbfec1114dba3a6ad3e5e46ad0b5e7a/src/entrypoints/main.ts#L27