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

2.1.4 • Public • Published

Installation

npm install --save @types/ace-diff

Summary

This package contains type definitions for ace-diff (https://ace-diff.github.io/ace-diff/).

Details

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

index.d.ts

export as namespace AceDiff;

export = AceDiff;

declare class AceDiff {
    constructor(opts: AceDiff.AceDiffConstructorOpts);
    getEditors(): {
        left: any;
        right: any;
    };
    setOptions(options: AceDiff.AceDiffOpts): void;
    getNumDiffs(): number;
    diff(): void;
    destroy(): void;
}
declare namespace AceDiff {
    interface AceDiffLROpts {
        content?: string | null | undefined;
        mode?: string | undefined;
        theme?: string | undefined;
        editable?: boolean | undefined;
        copyLinkEnabled?: boolean | undefined;
    }

    interface AceDiffConstructorOpts extends AceDiffOpts {
        element: string | HTMLElement;
        left: AceDiffLROpts;
        right: AceDiffLROpts;
    }

    interface AceDiffOpts {
        mode?: string | undefined;
        theme?: string | undefined;
        diffGranularity?: "specific" | "broad" | undefined;
        showDiffs?: boolean | undefined;
        showConnectors?: boolean | undefined;
        maxDiffs?: number | undefined;
        left?: AceDiffLROpts | undefined;
        right?: AceDiffLROpts | undefined;
        classes?: {
            diff: string;
            connector: string;
            newCodeConnectorLinkContent: string;
            deletedCodeConnectorLinkContent: string;
        } | undefined;
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by Mike Dodge.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ace-diff

Weekly Downloads

292

Version

2.1.4

License

MIT

Unpacked Size

5.19 kB

Total Files

5

Last publish

Collaborators

  • types