UNPKG

@pothos/core

Version:

Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript

15 lines 947 B
import { inputFieldShapeKey, type PothosInputFieldConfig, type PothosTypeConfig, type SchemaTypes } from '../types'; export declare class InputFieldRef<Types extends SchemaTypes, T = unknown> implements PothosSchemaTypes.InputFieldRef<Types, T> { kind: "InputObject"; fieldName?: string; $inferInput: T; [inputFieldShapeKey]: T; protected pendingActions: ((config: PothosInputFieldConfig<Types>) => PothosInputFieldConfig<Types> | undefined)[]; private initConfig; private onUseCallbacks; constructor(initConfig: (name: string, typeConfig: PothosTypeConfig) => PothosInputFieldConfig<Types>); updateConfig(cb: (config: PothosInputFieldConfig<Types>) => PothosInputFieldConfig<Types> | undefined): void; getConfig(name: string, typeConfig: PothosTypeConfig): PothosInputFieldConfig<Types>; onFirstUse(cb: (config: PothosInputFieldConfig<Types>) => void): void; } //# sourceMappingURL=input-field.d.ts.map