This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/@alcalzone/ansi-tokenize/build/tokenize.d.ts
T

13 lines
285 B
TypeScript

export interface AnsiCode {
type: "ansi";
code: string;
endCode: string;
}
export interface Char {
type: "char";
value: string;
fullWidth: boolean;
}
export type Token = AnsiCode | Char;
export declare function tokenize(str: string, endChar?: number): Token[];