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 fe1f10b commit e6c5117
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 @@ -86,8 +86,9 @@ export async function generateComposables(meta: GraphQLMeta): Promise<string> {
const defaultTypes = ['boolean', 'string', 'date', 'int', 'number', 'float'];
let customTypes = [];
template.push('import type { InputFields } from \'#base-types/fields\';');
template.push('import { gqlQuery, gqlAsyncQuery, gqlMutation, gqlSubscription, type ReturnTypeOfSubscription, type GraphqlError } from \'#imports\';');
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 \'@lenne.tech/nuxt-base\';\n');

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

0 comments on commit e6c5117

Please sign in to comment.