Add .gitignore to exclude all node packages and lock files

This commit is contained in:
Adolfo Reyna
2026-02-23 21:56:04 -05:00
parent faae96c9ed
commit dcc5c6c044
9747 changed files with 1555105 additions and 2 deletions
@@ -0,0 +1,40 @@
type Options = {
width?: number;
height?: number;
};
export declare class AnsiDiff {
x: number;
y: number;
width: number;
height: number;
_buffer: string | null;
_out: Buffer[];
_lines: Line[];
finished: boolean;
constructor(opts?: Options);
toString(): string | null;
finish(): Buffer;
update(buffer: string | Buffer, opts?: {
moveTo?: [number, number];
}): Buffer;
_clearDown(y: number): void;
_newline(): void;
_write(line: Line): void;
_moveTo(x: number, y: number): void;
_push: (buf: Buffer) => void;
}
declare class Line {
y: number;
width: number;
parts: string[];
height: number;
remainder: number;
raw: string;
length: number;
newline: boolean;
constructor(str: string, y: number, nl: boolean, term: AnsiDiff);
diffLeft(other: Line): number;
diffRight(other: Line): number;
toBuffer(): Buffer;
}
export {};