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
readonlyadded: readonlyT[]
Defined in: collection/types.ts:23
removed
readonlyremoved: readonlyT[]
Defined in: collection/types.ts:25
unchanged
readonlyunchanged: readonlyT[]
Defined in: collection/types.ts:26
updated
readonlyupdated: readonlyUpdatedItem<T>[]
Defined in: collection/types.ts:24