mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Merge pull request #17218 from LucianBuzzo/xterm-updates
Add some missing values to xterm types
This commit is contained in:
Vendored
+8
-1
@@ -1,6 +1,7 @@
|
||||
// Type definitions for xterm.js 2.0.1
|
||||
// Project: https://github.com/sourcelair/xterm.js/
|
||||
// Definitions by: Steven Silvester <https://github.com/blink1073>
|
||||
// Lucian Buzzo <https://github.com/LucianBuzzo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/**
|
||||
@@ -8,6 +9,10 @@
|
||||
*/
|
||||
interface Xterm {
|
||||
|
||||
cols: number;
|
||||
|
||||
rows: number;
|
||||
|
||||
options: Xterm.IOptions;
|
||||
|
||||
element: HTMLElement;
|
||||
@@ -30,7 +35,7 @@ interface Xterm {
|
||||
|
||||
off(event: string, callback: (...args: any[]) => void): void;
|
||||
|
||||
open(parent: HTMLElement): void;
|
||||
open(parent: HTMLElement, focus?: boolean): void;
|
||||
|
||||
refresh(start: number, end: number, queue?: boolean): void;
|
||||
|
||||
@@ -45,6 +50,8 @@ interface Xterm {
|
||||
write(text: string): void;
|
||||
|
||||
writeln(text: string): void;
|
||||
|
||||
fit?(): void;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user