JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 266789
  • Score
    100M100P100Q165586F
  • License MIT

TypeScript definitions for json-diff

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/json-diff) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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

    // Type definitions for json-diff 0.9
    // Project: https://github.com/andreyvit/json-diff
    // Definitions by: Tommy Wong <https://github.com/wchtommy20013/>
    //                 Jerryh001 <https://github.com/Jerryh001>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    export interface DiffOptions {
        verbose?: boolean;
        raw?: boolean;
        keysOnly?: boolean;
        full?: boolean;
        sort?: boolean;
        outputKeys?: string[];
        keepUnchangedValues?: boolean;
        outputNewOnly?: boolean;
    }
    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: Fri, 16 Sep 2022 22:32:48 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Tommy Wong, and Jerryh001.