Skip to main content

@skyleague/therefore

Index

Other

BooleanOptions

BooleanOptions: object

DictOptions

DictOptions: object

EnumOptions

EnumOptions: object

InferSchemaType

InferSchemaType<T>: T extends { is: (o: unknown) => o is infer S } ? S : never

Type parameters

  • T

IntersectionOptions

IntersectionOptions: object

ObjectPropertiesArg

ObjectPropertiesArg<Shape>: { [ K in keyof Shape ]: ConstExpr<Shape[K]> }

Type parameters

  • Shape: Record<string, Node> = Record<string, Node>

RefOptions

RefOptions: object

SchemaOptions

SchemaOptions<O, T>: Partial<ThereforeNodeDefinition<T> & ThereforeMeta> & O

Type parameters

  • O
  • T = unknown

ThereforeExpr

ThereforeExpr: Node | () => Node

UnionOptions

UnionOptions: object

const$graphql

$graphql: { field: (options: SchemaOptions<FieldOptions>) => GraphqlFieldType; resolver: (root: ObjectType<Record<string, Node>>, fieldName: string, options: Partial<ThereforeNodeDefinition<unknown> & ThereforeMeta> & object & ResolverArgs) => GraphqlFieldType; schema: (__namedParameters: GraphqlSchemaOptions) => GraphQLSchemaType } = ...

Type declaration

  • field: (options: SchemaOptions<FieldOptions>) => GraphqlFieldType
  • resolver: (root: ObjectType<Record<string, Node>>, fieldName: string, options: Partial<ThereforeNodeDefinition<unknown> & ThereforeMeta> & object & ResolverArgs) => GraphqlFieldType
      • (root: ObjectType<Record<string, Node>>, fieldName: string, options: Partial<ThereforeNodeDefinition<unknown> & ThereforeMeta> & object & ResolverArgs): GraphqlFieldType
      • Parameters

        • root: ObjectType<Record<string, Node>>
        • fieldName: string
        • options: Partial<ThereforeNodeDefinition<unknown> & ThereforeMeta> & object & ResolverArgs

        Returns GraphqlFieldType

  • schema: (__namedParameters: GraphqlSchemaOptions) => GraphQLSchemaType
      • (__namedParameters: GraphqlSchemaOptions): GraphQLSchemaType
      • Parameters

        • __namedParameters: GraphqlSchemaOptions

        Returns GraphQLSchemaType