File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- export function diff ( originalObj : object , updatedObj : object ) : object
1
+ export function diff < T extends object > ( originalObj : T , updatedObj : T ) : Partial < T >
2
2
3
- export function addedDiff ( originalObj : object , updatedObj : object ) : object
3
+ export function addedDiff < T extends object > ( originalObj : T , updatedObj : T ) : Partial < T >
4
4
5
- export function deletedDiff ( originalObj : object , updatedObj : object ) : object
5
+ export function deletedDiff < T extends object > ( originalObj : T , updatedObj : T ) : Partial < T >
6
6
7
- export function updatedDiff ( originalObj : object , updatedObj : object ) : object
7
+ export function updatedDiff < T extends object > ( originalObj : T , updatedObj : T ) : Partial < T >
8
8
9
- export interface DetailedDiff {
10
- added : object
11
- deleted : object
12
- updated : object
9
+ export interface DetailedDiff < T extends object > {
10
+ added : Partial < T >
11
+ deleted : Partial < T >
12
+ updated : Partial < T >
13
13
}
14
14
15
- export function detailedDiff ( originalObj : object , updatedObj : object ) : DetailedDiff
15
+ export function detailedDiff < T extends object > ( originalObj : T , updatedObj : T ) : DetailedDiff < T >
You can’t perform that action at this time.
0 commit comments