This directory contains all TypeScript type definitions for the GraphQL module, organized into logical groups:
Core GraphQL data structure types:
-
GraphQLJSON
- JSON representation of GraphQL schema structure
GraphQL code generation related types:
-
CodegenServerConfig
- Server-side TypeScript codegen configuration -
CodegenClientConfig
- Client-side TypeScript codegen configuration -
GraphQLCodegenPlugin
- Custom codegen plugin function type
Runtime-specific types (reserved for future use)
Module hook and configuration types:
-
ModuleOptions
- GraphQL module configuration options -
ModuleRuntimeOptions
- Runtime configuration options -
SetupModuleOption
- Setup phase options -
ModuleRuntimeMethods
- Runtime method definitions -
MetaData
- GraphQL endpoint metadata -
ModuleHooks
- Available module hooks -
GraphQLDataLoaderNames
- DataLoader name interface
Schema and document loading types:
-
GraphQLLoadSchemaOptions
- Schema loading options -
GraphQLLoadDocumentsOptions
- Document loading options -
GraphQLTypeDefPointer
- Type definition pointer -
GraphQLSource
- GraphQL source document
Server-specific types:
-
EnvelopedExecutionArgs
- Enveloped GraphQL execution arguments -
GraphQLYogaInstance
- Yoga server instance type
GraphQL directive types:
-
PermissionDirective
- Permission directive configuration -
DirectiveTransformer
- Schema directive transformer function
Schema extraction and analysis types:
-
ExtractPathOptions
- Options for path extraction -
SchemaExtractionResult
- Schema extraction result
All types are re-exported from the main index.ts
file:
import type {
CodegenServerConfig,
GraphQLJSON,
ModuleOptions,
// ... etc
} from '@silgi/graphql/types'