Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

Type Parameters

Types extends SchemaTypes
T
definition: T extends { [outputShapeKey]: infer U; } ? U : T extends new (...args: any[]) => infer U ? U extends { [outputShapeKey]: infer V; } ? V : U : T extends keyof Types["outputShapes"] ? Types["outputShapes"][T] : T extends BaseEnum ? ValuesFromEnum<T> : never