Module

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

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

Type Parameters

Types extends SchemaTypes
Param extends [OutputType<Types>]
Nullable extends FieldNullability<Param>
definition: FieldNullability<Param> extends Nullable ? Types["DefaultFieldNullability"] extends true ? readonly OutputShape<Types, Param[0]>[] | null | undefined : readonly OutputShape<Types, Param[0]>[] : Nullable extends true ? readonly OutputShape<Types, Param[0]>[] | null | undefined : Nullable extends false ? readonly OutputShape<Types, Param[0]>[] : Nullable extends { list: infer List; items: infer Items; } ? Items extends boolean ? List extends true ? readonly ShapeFromTypeParam<Types, Param[0], Items extends false ? false : true>[] | null | undefined : readonly ShapeFromTypeParam<Types, Param[0], Items extends false ? false : true>[] : never : never