Skip to content

Commit

Permalink
style(index): revert mistakenly unrespected styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jjangga0214 committed Jun 22, 2021
1 parent c936740 commit ec958df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class GraphQLClient {
query: string,
variables?: V,
requestHeaders?: Dom.RequestInit['headers']
): Promise<{ data: T; extensions?: any; headers: Dom.Headers; status: number }> {
): Promise<{ data: T; extensions?: any; headers: Dom.Headers; status: number; }> {
let { headers, fetch: localFetch = crossFetch, ...others } = this.options
const body = createRequestBody(query, variables)

Expand All @@ -54,7 +54,7 @@ export class GraphQLClient {
headers: {
...(typeof body === 'string' ? { 'Content-Type': 'application/json' } : {}),
...resolveHeaders(headers),
...resolveHeaders(requestHeaders),
...resolveHeaders(requestHeaders)
},
body,
...others,
Expand Down Expand Up @@ -117,7 +117,7 @@ export async function rawRequest<T = any, V = Variables>(
url: string,
query: string,
variables?: V
): Promise<{ data: T; extensions?: any; headers: Dom.Headers; status: number }> {
): Promise<{ data: T; extensions?: any; headers: Dom.Headers; status: number; }> {
const client = new GraphQLClient(url)
return client.rawRequest<T, V>(query, variables)
}
Expand Down

0 comments on commit ec958df

Please sign in to comment.