graphql-playground
graphql-playground copied to clipboard
shareEnabled is not available on config typings outside of react playground
This issue pertains to the following package(s):
- [ ] GraphQL Playground - Electron App
- [x] GraphQL Playground HTML
- [x] GraphQL Playground
- [ ] GraphQL Playground Express Middleware
- [ ] GraphQL Playground Hapi Middleware
- [ ] GraphQL Playground Koa Middleware
- [ ] GraphQL Playground Lambda Middleware
What OS and OS version are you experiencing the issue(s) on?
What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?
What is the expected behavior?
shareEnabled to be available in typings
What is the actual behavior?
shareEnabled seems to only be available in the typings for the react playground package, but works in others if we ignore TS
What steps may we take to reproduce the behavior?
Try to enable share outside of react, and see the TS error. Then ignore like so:
const apolloServer = new ApolloServer({
introspection: true,
playground: {
// @ts-ignore
shareEnabled: true
},
schema,
and see share button work
Please provide a gif or image of the issue for a quicker response/fix.
Bump, this is still an issue today
I can just make the PR for this, will do it later today — should have done it earlier lol