UNPKG

897 BTypeScriptView Raw
1import { ObjectTypeComposer } from '../ObjectTypeComposer';
2import { InterfaceTypeComposer } from '../InterfaceTypeComposer';
3import type { InputTypeComposer } from '../InputTypeComposer';
4import { ComposeOutputType, ComposeInputType, ComposeInputTypeDefinition, AnyTypeComposer } from './typeHelpers';
5export declare type ToInputTypeOpts = {
6 prefix?: string;
7 postfix?: string;
8 fallbackType?: ComposeInputTypeDefinition | null;
9};
10export declare function toInputType(anyTC: AnyTypeComposer<any>, opts?: ToInputTypeOpts): ComposeInputType;
11export declare function toInputObjectType<TContext>(tc: ObjectTypeComposer<any, TContext> | InterfaceTypeComposer<any, TContext>, opts?: ToInputTypeOpts): InputTypeComposer<TContext>;
12export declare function convertInputObjectField(field: ComposeOutputType<any>, opts: ToInputTypeOpts): ComposeInputType;
13//# sourceMappingURL=toInputType.d.ts.map
\No newline at end of file