eslint-plugin-yml
Version:
This ESLint plugin provides linting rules for YAML.
16 lines (15 loc) • 362 B
TypeScript
export type DeleteEntry<E> = {
type: "delete";
a: E;
};
export type InsertEntry<E> = {
type: "insert";
b: E;
};
export type CommonEntry<E> = {
type: "common";
a: E;
b: E;
};
export type DiffEntry<E> = DeleteEntry<E> | InsertEntry<E> | CommonEntry<E>;
export declare function calcShortestEditScript<E>(a: E[], b: E[]): DiffEntry<E>[];