Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Diff

Class representing one diff tuple. Attempts to look like a two-element array (which is what this used to be).

param

Operation, one of: DIFF_DELETE, DIFF_INSERT, DIFF_EQUAL.

param

Text to be deleted, inserted, or retained.

constructor

Hierarchy

  • Diff

Index

Constructors

Properties

Constructors

constructor

  • new Diff(op: number, text: string): Diff
  • Parameters

    • op: number
    • text: string

    Returns Diff

Properties

0

0: number

1

1: string