Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EnumValueDefinitionMixin

Hierarchy

  • EnumValueDefinitionMixin

Index

Constructors

constructor

Properties

Readonly _values

_values: Crud<EnumValueDefinitionNode, EnumValueDefinitionApi, string | { description?: StringValueNodeProps | StringValueNode; directives?: ReadonlyArray<DirectiveNodeProps | DirectiveNode>; name: NameNodeProps | NameNode }, string> = new Crud({parent: this.node,key: 'values',api: Api.enumValueDefinitionApi,factory: Ast.enumValueDefinitionNode,matcher: (node): Fieldname => node.name.value,})

Readonly node

Methods

createValue

  • createValue(props: Ast.EnumValueDefinitionNodeProps | EnumValueDefinitionNode): this
  • Parameters

    • props: Ast.EnumValueDefinitionNodeProps | EnumValueDefinitionNode

    Returns this

getValue

getValueNames

  • Returns Fieldname[]

getValues

hasValue

  • Parameters

    Returns boolean

removeValue

  • Parameters

    Returns this

updateValue

  • updateValue(fieldname: Fieldname, props: Fieldname | Partial<Ast.EnumValueDefinitionNodeProps | EnumValueDefinitionNode>): this
  • Parameters

    • fieldname: Fieldname
    • props: Fieldname | Partial<Ast.EnumValueDefinitionNodeProps | EnumValueDefinitionNode>

    Returns this

upsertValue

  • upsertValue(props: Ast.EnumValueDefinitionNodeProps | EnumValueDefinitionNode): this
  • Parameters

    • props: Ast.EnumValueDefinitionNodeProps | EnumValueDefinitionNode

    Returns this

Generated using TypeDoc