Skip to content

Commit

Permalink
Simplify options API
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Dec 11, 2022
1 parent c7660fb commit 69379ba
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions typings/xterm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,29 +704,24 @@ declare module 'xterm' {
* Gets or sets the terminal options. This supports setting multiple options.
*
* @example Get a single option
* ```typescript
* ```ts
* console.log(terminal.options.fontSize);
* ```
*/
get options(): Required<ITerminalOptions>;

/**
* Gets or sets the terminal options. This supports setting multiple options.
*
* @example Set a single option
* ```typescript
* ```ts
* terminal.options.fontSize = 12;
* ```
*
* @example Set multiple options
* ```typescript
* ```ts
* terminal.options = {
* fontSize: 12,
* fontFamily: 'Arial',
* };
* ```
*/
set options(options: ITerminalOptions);
options: ITerminalOptions;

/**
* Natural language strings that can be localized.
Expand Down

0 comments on commit 69379ba

Please sign in to comment.