-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue: Explicit type annotation is needed when initialising graphQL tada #376
Comments
That's a new sanity check afaik, but nothing we can do about this afaik. The only way around this is to declare the FWIW, it's not a good idea to share the |
At least I grabbed all the internal definitions from // all the internal type definitions from gql-tada.d.ts file
interface Setup extends AbstractSetupSchema {
disableMasking: true;
introspection: introspection;
}
export const graphql: GraphQLTadaAPI<schemaOfSetup<Setup>, configOfSetup<Setup>> = initGraphQLTada<Setup>(); I know I'll never do this but I was testing whether that worked.
what do you mean by "local" code base? I was following what's on https://gql-tada.0no.co/get-started/installation#initializing-gql-tada-manually to write GQL documents. |
You were following it, but in a typical "app" build output, I wouldn't expect declarations to be generated, so I assume it's isolated in a package that isn't aliased in a monorepo, but instead shared declarations, or is a library that's being built. I think we can make this more ergonomic though |
Describe the bug
build fails with typescript v5.5 onwards while having the option "declaration" enabled in tsconfig.
raised error:
Reproduction
No response
gql.tada version
gql.tada v1.8.6
Validations
The text was updated successfully, but these errors were encountered: