Skip to main content

Interface: DiffResult<T>

Defined in: collection/types.ts:22

Result of a diff operation showing added, updated, and removed items.

Example

const result: DiffResult<User> = {
added: [newUser],
updated: [{ old: oldUser, new: updatedUser }],
removed: [deletedUser],
unchanged: [sameUser]
}

Type Parameters

T

T

The type of items in the collection

Properties

added

readonly added: readonly T[]

Defined in: collection/types.ts:23


removed

readonly removed: readonly T[]

Defined in: collection/types.ts:25


unchanged

readonly unchanged: readonly T[]

Defined in: collection/types.ts:26


updated

readonly updated: readonly UpdatedItem<T>[]

Defined in: collection/types.ts:24