Skip to content

Commit

Permalink
fix(query): use NonNullable for QueryData type generation
Browse files Browse the repository at this point in the history
  • Loading branch information
CPatchane committed Mar 9, 2022
1 parent e4c1dd9 commit 25341f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/generators/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ const generateQueryImplementation = ({
: `typeof ${operationName}`;

return `
export type ${pascal(name)}QueryData = AsyncReturnType<${dataType}>
export type ${pascal(name)}QueryData = NonNullable<AsyncReturnType<${dataType}>>
export type ${pascal(name)}QueryError = ${errorType}
export const ${camel(
Expand Down

0 comments on commit 25341f1

Please sign in to comment.