@types/json-diff
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Installation

npm install --save @types/json-diff

Summary

This package contains type definitions for json-diff (https://github.com/andreyvit/json-diff).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-diff.

index.d.ts

export interface DiffOptions {
    verbose?: boolean;
    raw?: boolean;
    keysOnly?: boolean;
    full?: boolean;
    sort?: boolean;
    outputKeys?: string[];
    excludeKeys?: string[];
    keepUnchangedValues?: boolean;
    outputNewOnly?: boolean;
    maxElisions?: number;
    precision?: number;
}

export interface DiffStringOptions extends DiffOptions {
    color?: boolean;
}

export function diff(obj1: unknown, obj2: unknown, options?: DiffOptions): any;
export function diffString(obj1: unknown, obj2: unknown, options?: DiffStringOptions): string;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Tommy Wong, Jerryh001, and HoldYourWaffle.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/json-diff

Weekly Downloads

69,733

Version

1.0.2

License

MIT

Unpacked Size

4.08 kB

Total Files

5

Last publish

Collaborators

  • types