mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
582 B
TypeScript
24 lines
582 B
TypeScript
// Type definitions for difflib 0.2
|
|
// Project: https://github.com/qiao/difflib.js
|
|
// Definitions by: majames <https://github.com/majames>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.4
|
|
|
|
export class SequenceMatcher<T> {
|
|
constructor(
|
|
isjunk: (() => boolean) | null,
|
|
left: T,
|
|
right: T,
|
|
autojunk?: boolean
|
|
);
|
|
getOpcodes(): Array<
|
|
[
|
|
"replace" | "delete" | "insert" | "equal",
|
|
number,
|
|
number,
|
|
number,
|
|
number
|
|
]
|
|
>;
|
|
}
|