Skip to content
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

Replace OperationStore import with OperationResultStore from urql #905

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ export const plugin: PluginFunction<Record<string, any>, Types.ComplexPluginOutp
suffix: operationTypeSuffix + operationResultSuffix,
});

return `export type ${storeTypeName} = OperationStore<${operationResultType}, ${operationVariablesTypes}>;`;
return `export type ${storeTypeName} = OperationResultStore<${operationResultType}, ${operationVariablesTypes}>;`;
}

return null;
})
.filter(Boolean);

return {
prepend: [`import type { OperationStore } from '@urql/svelte';`],
prepend: [`import type { OperationResultStore } from '@urql/svelte';`],
content: out.filter(Boolean).join('\n'),
};
};
Loading