Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InterfacesMixin

Hierarchy

  • InterfacesMixin

Index

Constructors

constructor

Properties

Readonly _interfaces

_interfaces: Crud<NamedTypeNode, NamedTypeApi, string | NameNode | { name: string }, string> = new Crud({parent: this.node,key: 'interfaces',api: Api.namedTypeApi,factory: Ast.namedTypeNode,matcher: (node): Typename => node.name.value,})

Readonly node

Methods

createInterface

  • createInterface(props: Ast.NamedTypeNodeProps | NamedTypeNode): this
  • Parameters

    • props: Ast.NamedTypeNodeProps | NamedTypeNode

    Returns this

getInterface

getInterfaceNames

  • Returns Typename[]

getInterfaces

  • Returns NamedTypeApi[]

hasInterface

  • hasInterface(typename: Typename): boolean
  • Parameters

    Returns boolean

removeInterface

  • removeInterface(typename: Typename): this
  • Parameters

    Returns this

updateInterface

  • updateInterface(typename: Typename, props: Typename | Partial<Ast.NamedTypeNodeProps | NamedTypeNode>): this
  • Parameters

    • typename: Typename
    • props: Typename | Partial<Ast.NamedTypeNodeProps | NamedTypeNode>

    Returns this

upsertInterface

  • upsertInterface(props: Ast.NamedTypeNodeProps | NamedTypeNode): this
  • Parameters

    • props: Ast.NamedTypeNodeProps | NamedTypeNode

    Returns this

Generated using TypeDoc