-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The signature of jsonDeepDiffList making it unsafe to use (the structure of the changes object is not validated by TypeScript at all)
export declare function jsonDeepDiffList(oldObj: any, newObj: any, options?: JODOptions): any[];
Can the return type be changed to something like:
type JSONDeepDiffChange = {
type: 'add' | 'delete' | 'replace',
path: string,
after: unknown;
before: unknown;
}
export declare function jsonDeepDiffList(oldObj: any, newObj: any, options?: JODOptions): JSONDeepDiffChange[];
Metadata
Metadata
Assignees
Labels
No labels