Skip to content

Commit

Permalink
refactor: import improvement
Browse files Browse the repository at this point in the history
[skip publish]
  • Loading branch information
favna committed Apr 1, 2024
1 parent 26a4fcb commit 6f19b64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
@@ -1,4 +1,4 @@
import { fetch, FetchMethods, FetchResultTypes } from '@sapphire/fetch';
import { fetch, FetchMediaContentTypes, FetchMethods, FetchResultTypes } from '@sapphire/fetch';
import { writeFile } from 'node:fs/promises';
import prettier from 'prettier';
import prettierConfig from '../../../.prettierrc.mjs';
Expand Down Expand Up @@ -33,7 +33,7 @@ async function executeGraphQL(pokemon: string): Promise<PokemonResponse> {
method: FetchMethods.Post,
headers: {
...userAgentHeader,
'Content-Type': 'application/json'
'Content-Type': FetchMediaContentTypes.JSON
},
body: JSON.stringify({
query: getPokemonWithFullDataAndEvolutions.loc?.source.body,
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils.ts
@@ -1,4 +1,4 @@
import { fetch, FetchResultTypes } from '@sapphire/fetch';
import { FetchResultTypes, fetch } from '@sapphire/fetch';
import { readFile, rm, writeFile } from 'node:fs/promises';
import { platform, release } from 'node:os';
import { inspect } from 'node:util';
Expand Down

0 comments on commit 6f19b64

Please sign in to comment.