Skip to main content
Module

x/pothos/packages/core/index.ts>InputShapeFromTypeParam

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
type alias InputShapeFromTypeParam
import { type InputShapeFromTypeParam } from "https://deno.land/x/pothos@release-1713397530/packages/core/index.ts";

Type Parameters

Types extends SchemaTypes
Param extends InputTypeParam<Types>
Required extends FieldRequiredness<Param>
definition: Param extends [InputType<Types>] ? InputShapeFromListTypeParam<Types, Param, Required> : FieldRequiredness<Param> extends Required ? Types["DefaultInputFieldRequiredness"] extends false ? InputShape<Types, Param> | null | undefined : InputShape<Types, Param> : Required extends true ? InputShape<Types, Param> : InputShape<Types, Param> | null | undefined