Skip to main content

Diff <N, V>

@group

Functions/Diff

Index

Constructors

Properties

Methods

Constructors

constructor

  • Diff<N, V>(node: N, action: DiffAction, field: string, value: V): Diff<N, V>
  • Type parameters

    • N: UnknownNode = UnknownNode
    • V = unknown

    Parameters

    Returns Diff<N, V>

Properties

readonlyaction

action: DiffAction

readonlyfield

field: string

readonlynode

node: N

readonlyvalue

value: V

Methods

toJSON

  • toJSON(): { action: string; field: string; node: string; value: string | V }
  • Overrides JSON.serialize() to output a more succinct representation of diff.


    Returns { action: string; field: string; node: string; value: string | V }

    • action: string
    • field: string
    • node: string
    • value: string | V