Skip to content

Commit

Permalink
Fix: Fixed broken schema imports
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinMusiku committed Aug 28, 2023
1 parent 3390503 commit 5dda76e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
6 changes: 6 additions & 0 deletions src/@types/graphql.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module '*.graphql' {
import { DocumentNode } from 'graphql'
const Schema: DocumentNode

export = Schema
}
30 changes: 16 additions & 14 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{
"compilerOptions": {
"outDir": "dist",
"target": "ES2020",
"module": "CommonJS",
"esModuleInterop": true,
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
},
"include": ["src/**/*"],
"exclude": ["node_modules"],
}
"compilerOptions": {
"outDir": "dist",
"target": "ES2020",
"module": "CommonJS",
"esModuleInterop": true,
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"typeRoots": ["./node_modules/@types", "./src/@types"]
},
"files": ["src/@types/graphql.d.ts"],
"include": ["src/**/*"],
"exclude": ["node_modules"]
}

0 comments on commit 5dda76e

Please sign in to comment.