diff --git a/types/deep-diff/index.d.ts b/types/deep-diff/index.d.ts index c246e42501..ac4d50b44a 100644 --- a/types/deep-diff/index.d.ts +++ b/types/deep-diff/index.d.ts @@ -4,27 +4,27 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -export interface DiffNew { - kind: Kind; +export interface DiffNew { + kind: 'N'; path?: any[]; rhs: RHS; } -export interface DiffDeleted { - kind: Kind; +export interface DiffDeleted { + kind: 'D'; path?: any[]; lhs: LHS; } -export interface DiffEdit { - kind: Kind; +export interface DiffEdit { + kind: 'E'; path?: any[]; lhs: LHS; rhs: RHS; } -export interface DiffArray { - kind: Kind; +export interface DiffArray { + kind: 'A'; path?: any[]; index: number; item: Diff;