Library
core
src
diff
editTable
Readme

Lawtext core referencesDocs


Lawtext core references / core/src/diff/editTable

core/src/diff/editTable

Type Aliases

AddRow<T>

AddRow<T>: [null, EditTableItem<T>]

Type Parameters

T

Defined in

core/src/diff/editTable.ts:3 (opens in a new tab)


EditTable<T>

EditTable<T>: EditTableRow<T>[]

Type Parameters

T

Defined in

core/src/diff/editTable.ts:1 (opens in a new tab)


EditTableItem<T>

EditTableItem<T>: [number, T]

Type Parameters

T

Defined in

core/src/diff/editTable.ts:6 (opens in a new tab)


EditTableRow<T>

EditTableRow<T>: AddRow<T> | RemoveRow<T> | SameRow<T>

Type Parameters

T

Defined in

core/src/diff/editTable.ts:2 (opens in a new tab)


RemoveRow<T>

RemoveRow<T>: [EditTableItem<T>, null]

Type Parameters

T

Defined in

core/src/diff/editTable.ts:4 (opens in a new tab)


SameRow<T>

SameRow<T>: [EditTableItem<T>, EditTableItem<T>]

Type Parameters

T

Defined in

core/src/diff/editTable.ts:5 (opens in a new tab)

Variables

MAX_D

const MAX_D: 200 = 200

Defined in

core/src/diff/editTable.ts:8 (opens in a new tab)

Functions

compare()

compare<T>(A, B, maxD): EditTable<T>

Type Parameters

T

Parameters

A: T[]

B: T[]

maxD: number = MAX_D

Returns

EditTable<T>

Defined in

core/src/diff/editTable.ts:10 (opens in a new tab)