Skip to content

Commit

Permalink
cleaned up added semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
ermish committed Mar 14, 2024
1 parent 4d23f35 commit 6487e6c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions utils/graphql.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import { GraphQLClient } from "graphql-request";
import { GraphQLClient } from "graphql-request"

export let gqlClient: GraphQLClient;

export const initializeGqlClient = () => {
if (gqlClient) {
return gqlClient;
return gqlClient
}

const endpoint = "https://api.findadoc.jp";
const client = new GraphQLClient(endpoint);
gqlClient = client;
const endpoint = "https://api.findadoc.jp"
const client = new GraphQLClient(endpoint)
gqlClient = client
};

export interface gqlMutation<T> extends gqlRequest {
variables: {
input: T;
};
input: T
}
}

export interface gqlRequest {
query: string;
variables: unknown;
query: string
variables: unknown
}

1 comment on commit 6487e6c

@NabbeunNabi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

Please sign in to comment.