From 27aa1034896f7fc663c98fc133a42385a1f2bdaa Mon Sep 17 00:00:00 2001 From: CPatchane Date: Sun, 13 Feb 2022 18:27:52 +0100 Subject: [PATCH] fix(query): prefer Result over Data for result data type suffix --- src/core/generators/query.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/generators/query.ts b/src/core/generators/query.ts index c9a4be605..7d901f65e 100644 --- a/src/core/generators/query.ts +++ b/src/core/generators/query.ts @@ -381,7 +381,7 @@ const generateQueryImplementation = ({ : `typeof ${operationName}`; return ` -export type ${pascal(name)}QueryData = NonNullable> +export type ${pascal(name)}QueryResult = NonNullable> export type ${pascal(name)}QueryError = ${errorType} export const ${camel( @@ -559,7 +559,7 @@ const generateQueryHook = ( return ` export type ${pascal( operationName, - )}MutationData = NonNullable> + )}MutationResult = NonNullable> export type ${pascal(operationName)}MutationError = ${errorType} export const ${camel(`use-${operationName}`)} =