Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3f7a5a5

Browse files
icholymattphillips
authored andcommitted
improve return type for detailedDiff
1 parent e12da18 commit 3f7a5a5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎index.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ export function deletedDiff (originalObj: object, updatedObj: object): object
66

77
export function updatedDiff (originalObj: object, updatedObj: object): object
88

9-
export function detailedDiff (originalObj: object, updatedObj: object): object
9+
export interface DetailedDiff {
10+
added: object
11+
deleted: object
12+
updated: object
13+
}
14+
15+
export function detailedDiff (originalObj: object, updatedObj: object): DetailedDiff

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /