Skip to content

Commit

Permalink
explicit types
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Apr 26, 2024
1 parent 15525ea commit 9c1a2b5
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,39 @@ export namespace iTerm {
*/
function annotation(message: string, options?: AnnotationOptions): string;
}
declare const ansiEscapes: typeof import('./index');

declare const ansiEscapes: {
beep: typeof beep;
clearScreen: typeof clearScreen;
clearTerminal: typeof clearTerminal;
cursorBackward: typeof cursorBackward;
cursorDown: typeof cursorDown;
cursorForward: typeof cursorForward;
cursorGetPosition: typeof cursorGetPosition;
cursorHide: typeof cursorHide;
cursorLeft: typeof cursorLeft;
cursorMove: typeof cursorMove;
cursorNextLine: typeof cursorNextLine;
cursorPrevLine: typeof cursorPrevLine;
cursorRestorePosition: typeof cursorRestorePosition;
cursorSavePosition: typeof cursorSavePosition;
cursorShow: typeof cursorShow;
cursorTo: typeof cursorTo;
cursorUp: typeof cursorUp;
enterAlternativeScreen: typeof enterAlternativeScreen;
eraseDown: typeof eraseDown;
eraseEndLine: typeof eraseEndLine;
eraseLine: typeof eraseLine;
eraseLines: typeof eraseLines;
eraseScreen: typeof eraseScreen;
eraseStartLine: typeof eraseStartLine;
eraseUp: typeof eraseUp;
exitAlternativeScreen: typeof exitAlternativeScreen;
image: typeof image;
iTerm: typeof iTerm;
link: typeof link;
scrollDown: typeof scrollDown;
scrollUp: typeof scrollUp;
};

export default ansiEscapes

0 comments on commit 9c1a2b5

Please sign in to comment.