Merge pull request #1302 from nikonso/Enforce-option-value-via-types
Enforce option value via types
This commit is contained in:
Vendored
+6
@@ -547,6 +547,12 @@ declare module 'xterm' {
|
|||||||
* @param value The option value.
|
* @param value The option value.
|
||||||
*/
|
*/
|
||||||
setOption(key: 'theme', value: ITheme): void;
|
setOption(key: 'theme', value: ITheme): void;
|
||||||
|
/**
|
||||||
|
* Sets an option on the terminal.
|
||||||
|
* @param key The option key.
|
||||||
|
* @param value The option value.
|
||||||
|
*/
|
||||||
|
setOption(key: 'cols' | 'rows', value: number): void;
|
||||||
/**
|
/**
|
||||||
* Sets an option on the terminal.
|
* Sets an option on the terminal.
|
||||||
* @param key The option key.
|
* @param key The option key.
|
||||||
|
|||||||
Reference in New Issue
Block a user