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
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'
…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