Skip to content

Commit 930eb67

Browse files
committed
fix(types): Updated type in accordance to implementation
1 parent 0ff8d64 commit 930eb67

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/types/internal/compare.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ export interface OperationChanges<T extends DiffType | DiffTypeDto = DiffType> {
6262
metadata?: OperationChangesMetadata & {
6363
[key: string]: unknown
6464
}
65+
previousMetadata?: OperationChangesMetadata & {
66+
[key: string]: unknown
67+
}
6568
}
6669

6770
export interface OperationChangesDto extends Omit<OperationChanges<DiffTypeDto>, 'diffs' | 'impactedSummary' | 'mergedJso'> {

src/utils/transformToDto.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export function toChangeMessage(diff: ArrayType<Diff[]>, logError: (message: str
134134

135135
export function toOperationChangesDto({
136136
diffs,
137+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
137138
impactedSummary,
138139
...rest
139140
}: OperationChanges, logError: (message: string) => void): OperationChangesDto {

0 commit comments

Comments
 (0)