Skip to content

Commit

Permalink
fix: use void instead of unknown for empty variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Wroud committed Oct 21, 2024
1 parent af71187 commit 981d1b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphql-codegen-typed-document-nodes/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function generateExportTypes(
} else if (def.kind === Kind.FRAGMENT_DEFINITION) {
const fragmentName = visitor.getFragmentName(def);
exportTypes.push(
`export type ${fragmentName}Doc = Types.TypedDocumentNode<${fragmentName}, unknown>;`,
`export type ${fragmentName}Doc = Types.TypedDocumentNode<${fragmentName}, void>;`,
);
}
}
Expand Down

0 comments on commit 981d1b8

Please sign in to comment.