mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 04:21:56 +03:00
5bf8ed1095
close AF-1724, AF-1722
37 lines
767 B
YAML
37 lines
767 B
YAML
hooks:
|
|
afterOneFileWrite:
|
|
- prettier --write
|
|
config:
|
|
strict: true
|
|
maybeValue: T | null
|
|
declarationKind: interface
|
|
avoidOptionals:
|
|
field: true
|
|
inputValue: false
|
|
object: false
|
|
defaultValue: false
|
|
preResolveTypes: true
|
|
namingConvention:
|
|
enumValues: keep
|
|
scalars:
|
|
DateTime: string
|
|
Date: string
|
|
Decimal: number
|
|
UUID: string
|
|
ID: string
|
|
JSON: Record<string, string>
|
|
Upload: File
|
|
SafeInt: number
|
|
overwrite: true
|
|
schema: ../../backend/server/src/schema.gql
|
|
documents: ./src/**/*.gql
|
|
generates:
|
|
./src/schema.ts:
|
|
plugins:
|
|
- typescript
|
|
- typescript-operations
|
|
- add:
|
|
content: '/* eslint-disable */'
|
|
- ./export-gql-plugin.cjs:
|
|
output: ./src/graphql/index.ts
|