Skip to content

Commit

Permalink
fix: fix wrong export of subscription type
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Klesse committed Nov 11, 2024
1 parent 72bdca7 commit 8b8b60c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ export async function generateComposables(meta: GraphQLMeta): Promise<string> {
template.push('import type { InputFields } from \'#base-types/fields\';');
template.push('import { gqlQuery, gqlAsyncQuery, gqlMutation, gqlSubscription } from \'#imports\';');
template.push('import type { AsyncData, AsyncDataOptions } from \'nuxt/app\';\n');
template.push('import type { ReturnTypeOfSubscription, GraphqlError } from \'#base-interfaces\';\n');
template.push('import type { ReturnTypeOfSubscription } from \'#base-interfaces/return-type-of-subscription.interface\';\n');
template.push('import type { GraphqlError } from \'#base-interfaces/graphql-error.interface\';\n');

if (methods?.query) {
for (const query of methods.query) {
Expand Down

0 comments on commit 8b8b60c

Please sign in to comment.