Skip to content

Commit 264a76f

Browse files
committed
Migrate typescript-react-apollo to Vitest
1 parent 2897ce8 commit 264a76f

6 files changed

Lines changed: 171 additions & 229 deletions

File tree

packages/plugins/typescript/react-apollo/src/visitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ export function use${suspenseOperationName}(baseOptions?: ${this.getApolloReactH
631631
suffix: operationTypeSuffix + this._parsedConfig.operationResultSuffix,
632632
});
633633

634-
const IDType = this.scalars.ID ?? 'string';
634+
const IDType = this.scalars.ID.output ?? 'string';
635635

636636
const hook = `export function use${fragmentName}<F = { id: ${IDType} }>(identifiers: F) {
637637
return ${this.getApolloReactHooksIdentifier()}.use${operationType}<${operationResultType}>({

0 commit comments

Comments
 (0)