Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Type<DataImmutable, DataMutable>

Type parameters

  • DataImmutable

  • DataMutable: DataImmutable

Hierarchy

  • GraphQLScalarType
    • Type

Index

Constructors

constructor

  • new Type(__namedParameters: object): Type
  • Parameters

    • __namedParameters: object

    Returns Type

Properties

Optional astNode

astNode: Maybe<ScalarTypeDefinitionNode>

data

data: string

description

description: Maybe<string>

factory

factory: function

Type declaration

    • (data: DataImmutable): DataMutable
    • Parameters

      • data: DataImmutable

      Returns DataMutable

name

name: string

Methods

inspect

  • inspect(): string
  • Returns string

parseLiteral

  • parseLiteral(valueNode: ValueNode, variables?: Maybe<object>): any
  • Parameters

    • valueNode: ValueNode
    • Optional variables: Maybe<object>

    Returns any

parseValue

  • parseValue(value: any): any
  • Parameters

    • value: any

    Returns any

serialize

  • serialize(value: any): any
  • Parameters

    • value: any

    Returns any

toJSON

  • toJSON(): string
  • Returns string

toString

  • toString(): string
  • Returns string