rsnext/examples/with-typescript-graphql/next-env.d.ts
Soichi Takamura 5fafd1a75b Proposing a new example "with-typescript-graphql" (#9803)
* New example with-typescript-graphql

* Update newer graphql-let

* Apply @lfades 's suggestions

* Use "lib" for tools directory
* Move config decorator to next.config.js
* Apply stricter tsconfig
* mod: hide the word "apollo" from users

* mod: Use variable name `withApollo`

* Use the later version of graphql-let

* Only pages can be in pages

* Life improvements

* fix: .grpahql-let.yml point to the wrong document path

* Use a wider glob for less pitfalls
* Add a note about it in README.md

Co-authored-by: Luis Alvarez D. <luis@zeit.co>
2020-01-08 13:39:00 -05:00

7 lines
186 B
TypeScript

/// <reference types="next" />
/// <reference types="next/types/global" />
declare module '*.graphqls' {
import { DocumentNode } from 'graphql'
export default typeof DocumentNode
}