Module

x/pothos/packages/core/mod.ts>InputShapeFromListTypeParam

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

Type Parameters

Types extends SchemaTypes
Param extends [InputType<Types>]
Required extends FieldRequiredness<Param>
definition: FieldRequiredness<Param> extends Required ? Types["DefaultInputFieldRequiredness"] extends false ? InputShape<Types, Param[0]>[] | null | undefined : InputShape<Types, Param[0]>[] : Required extends true ? InputShape<Types, Param[0]>[] : Required extends false ? InputShape<Types, Param[0]>[] | null | undefined : FieldRequiredness<Param> extends Required ? InputShape<Types, Param[0]>[] | null | undefined : Required extends boolean | { list: infer List; items: infer Items; } ? Items extends boolean ? List extends true ? InputShapeFromTypeParam<Types, Param[0], Items extends false ? false : true>[] : InputShapeFromTypeParam<Types, Param[0], Items extends false ? false : true>[] | null | undefined : never : never