Skip to content

Commit

Permalink
Enforce option value via types
Browse files Browse the repository at this point in the history
  • Loading branch information
bmf-ribeiro committed Feb 26, 2018
1 parent c801734 commit 76a3dbf
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions typings/xterm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,12 +487,7 @@ declare module 'xterm' {
* @param key The option key.
*/
getOption(key: 'handler'): (data: string) => void;
/**
* Retrieves an option's value from the terminal.
* @param key The option key.
*/
getOption(key: string): any;


/**
* Sets an option on the terminal.
* @param key The option key.
Expand Down Expand Up @@ -548,12 +543,10 @@ declare module 'xterm' {
*/
setOption(key: 'theme', value: ITheme): void;
/**
* Sets an option on the terminal.
* Retrieves an option's value from the terminal.
* @param key The option key.
* @param value The option value.
*/
setOption(key: string, value: any): void;

setOption(key: 'cols' | 'rows', value: number): void;
/**
* Tells the renderer to refresh terminal content between two rows
* (inclusive) at the next opportunity.
Expand Down

0 comments on commit 76a3dbf

Please sign in to comment.