helios1138 / graphql-typed-client

A tool that generates a strongly typed client library for any GraphQL endpoint. The client allows writing GraphQL queries as plain JS objects (with type safety, awesome code completion experience, custom scalar type mapping, type guards and more)
MIT License
212 stars 18 forks source link

Remove duplicated exports in barrel file to be compatible with isolat… #17

Closed znedw closed 4 years ago

znedw commented 5 years ago

…edModules

Create-React-Apps' .tsconfig has isolatedModules enabled by default which has issues with this library:

TypeScript error in node_modules/graphql-typed-client/src/index.ts(1,24): Cannot re-export a type when the '--isolatedModules' flag is provided. TS1205

1 | export { createClient, ClientOptions } from './client/createClient' | ^ 2 | export { linkTypeMap } from './client/linkTypeMap' 3 | export { Observable } from 'rxjs' 4 | export { ClientError } from './client/createClient'

tonyfromundefined commented 4 years ago

https://github.com/helios1138/graphql-typed-client/pull/18

This helps avoiding type errors.

helios1138 commented 4 years ago

fixed by https://github.com/helios1138/graphql-typed-client/pull/18