Skip to content

Commit

Permalink
fix: use helper types from codegen package directly
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Jun 26, 2024
1 parent 0371c1c commit ddc14cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions apps/silverback-gatsby/src/pages/graphql-request-test.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import {
AnyOperationId,
OperationResult,
OperationVariables,
} from '@amazeelabs/codegen-operation-ids';
import React, { useEffect, useState } from 'react';

import {
AnyOperationId,
GetPagesQuery,
GetRandomIntMutation,
OperationResult,
OperationVariables,
} from '../../generated/operations';

async function graphqlFetch<T extends AnyOperationId>(
Expand Down
8 changes: 5 additions & 3 deletions apps/silverback-gatsby/src/pages/react-query-test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import {
AnyOperationId,
OperationResult,
OperationVariables,
} from '@amazeelabs/codegen-operation-ids';
import React, { useEffect, useState } from 'react';
import {
useMutation,
Expand All @@ -7,11 +12,8 @@ import {
} from 'react-query';

import {
AnyOperationId,
GetPagesQuery,
GetRandomIntMutation,
OperationResult,
OperationVariables,
} from '../../generated/operations';

function usePersistedQuery<T extends AnyOperationId>(
Expand Down

0 comments on commit ddc14cb

Please sign in to comment.