manifold/web/@types/graphql.d.ts
joy_void_joy 2e5ea40953 chore: Add ability to import .graphql files
Change next-js config to be able to write

```
import typeDefs from './schema.graphql'
```
2022-07-20 13:47:43 +02:00

7 lines
120 B
TypeScript

declare module '*.graphql' {
import { DocumentNode } from 'graphql'
const Schema: DocumentNode
export = Schema
}