Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CrudConfig<Node, Api, Props, Target>

Type parameters

  • Node

  • Api

  • Props

  • Target

Hierarchy

  • CrudConfig

Index

Properties

api

api: (el: Node) => Api

how returned node should be wrapped

Type declaration

    • (el: Node): Api
    • Parameters

      • el: Node

      Returns Api

factory

factory: (props: Props) => Node

how provided props should be coerced to node

Type declaration

    • (props: Props): Node
    • Parameters

      • props: Props

      Returns Node

key

key: string

parent key with an array

Optional kindFilter

kindFilter: GQL.KindEnum[]

additional kind filter

matcher

matcher: (el: Node) => Target

compare function - usually pointing to name

Type declaration

    • (el: Node): Target
    • Parameters

      • el: Node

      Returns Target

parent

parent: GQL.ASTNode

parent node

Optional ref

ref: undefined | ((next?: any[]) => any[])

custom getter/ ref callback instead of parent[key]

Generated using TypeDoc