1.0.3 • Published 7 months ago

@types/fake-diff v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/fake-diff

Summary

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

Details

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

index.d.ts

// Type definitions for fake-diff 1.0
// Project: https://github.com/onurkerimov/fake-diff
// Definitions by: Álvaro Mondéjar Rubio <https://github.com/mondeja>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export = fakeDiff;

interface FakeDiffOptions {
    /** Hide not changed lines (as default `true`). */
    hideLines?: boolean;

    /**
     * Maximum number of adjacent not changed lines shown.
     * Only takes effect if `hideLines` is `true` (as default `2`).
     */
    maxAdjacentStaticLines?: number;
}

declare function fakeDiff(
    previous: string,
    next: string,
    options?: FakeDiffOptions
): string;

Additional Details

  • Last updated: Thu, 06 Jan 2022 22:01:23 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Álvaro Mondéjar Rubio.