diff --git a/index.d.ts b/index.d.ts index 2fea20a..43f85b5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,15 +1,15 @@ -export function diff (originalObj: object, updatedObj: object): object +export function diff(originalObj: T, updatedObj: T): Partial -export function addedDiff (originalObj: object, updatedObj: object): object +export function addedDiff(originalObj: T, updatedObj: T): Partial -export function deletedDiff (originalObj: object, updatedObj: object): object +export function deletedDiff(originalObj: T, updatedObj: T): Partial -export function updatedDiff (originalObj: object, updatedObj: object): object +export function updatedDiff(originalObj: T, updatedObj: T): Partial -export interface DetailedDiff { - added: object - deleted: object - updated: object +export interface DetailedDiff { + added: Partial + deleted: Partial + updated: Partial } -export function detailedDiff (originalObj: object, updatedObj: object): DetailedDiff +export function detailedDiff(originalObj: T, updatedObj: T): DetailedDiff