From 6487e6c6d8644ea277f588e313a583c926fc3191 Mon Sep 17 00:00:00 2001 From: Philip Ermish Date: Thu, 14 Mar 2024 21:53:36 +0900 Subject: [PATCH] cleaned up added semicolons --- utils/graphql.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/utils/graphql.ts b/utils/graphql.ts index bcdd52cc..46199856 100644 --- a/utils/graphql.ts +++ b/utils/graphql.ts @@ -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 extends gqlRequest { variables: { - input: T; - }; + input: T + } } export interface gqlRequest { - query: string; - variables: unknown; + query: string + variables: unknown }