/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
examples/with-typescript-graphql/codegen.ts
23 строки
427 B
Steven
chore(examples): use default prettier for examples/templates (#60530)
12 янв 2024, 02:01
Не верифицирован
12 янв 2024, 02:01
4466ba4
Код
Авторство
О чём код?
import type { CodegenConfig } from "@graphql-codegen/cli"; const config: CodegenConfig = { schema: [ { "lib/schema.ts": { noRequire: true, }, }, ], documents: "./pages/**/*.tsx", generates: { "./lib/gql/": { preset: "client", plugins: [], }, "./lib/resolvers-types.ts": { plugins: ["typescript", "typescript-resolvers"], }, }, }; export default config;