Merge pull request #1302 from nikonso/Enforce-option-value-via-types

Enforce option value via types
This commit is contained in:
Daniel Imms
2018-02-28 07:47:25 -08:00
committed by GitHub
+6
View File
@@ -547,6 +547,12 @@ declare module 'xterm' {
* @param value The option value.
*/
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.
* @param key The option key.