Skip to content

Commit b918f0d

Browse files
committed
Use FontWeight as return type
1 parent f0e3159 commit b918f0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/browser/public/Terminal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @license MIT
44
*/
55

6-
import { Terminal as ITerminalApi, ITerminalOptions, IMarker, IDisposable, ILinkMatcherOptions, ITheme, ILocalizableStrings, ITerminalAddon, ISelectionPosition, IBuffer as IBufferApi, IBufferNamespace as IBufferNamespaceApi, IBufferLine as IBufferLineApi, IBufferCell as IBufferCellApi, IParser, IFunctionIdentifier, ILinkProvider, IUnicodeHandling, IUnicodeVersionProvider } from 'xterm';
6+
import { Terminal as ITerminalApi, ITerminalOptions, IMarker, IDisposable, ILinkMatcherOptions, ITheme, ILocalizableStrings, ITerminalAddon, ISelectionPosition, IBuffer as IBufferApi, IBufferNamespace as IBufferNamespaceApi, IBufferLine as IBufferLineApi, IBufferCell as IBufferCellApi, IParser, IFunctionIdentifier, ILinkProvider, IUnicodeHandling, IUnicodeVersionProvider, FontWeight } from 'xterm';
77
import { ITerminal } from 'browser/Types';
88
import { IBufferLine, ICellData } from 'common/Types';
99
import { IBuffer, IBufferSet } from 'common/buffer/Types';
@@ -172,7 +172,7 @@ export class Terminal implements ITerminalApi {
172172
public getOption(key: 'bellSound' | 'bellStyle' | 'cursorStyle' | 'fontFamily' | 'logLevel' | 'rendererType' | 'termName' | 'wordSeparator'): string;
173173
public getOption(key: 'allowTransparency' | 'cancelEvents' | 'convertEol' | 'cursorBlink' | 'disableStdin' | 'macOptionIsMeta' | 'rightClickSelectsWord' | 'popOnBell' | 'visualBell'): boolean;
174174
public getOption(key: 'cols' | 'fontSize' | 'letterSpacing' | 'lineHeight' | 'rows' | 'tabStopWidth' | 'scrollback'): number;
175-
public getOption(key: 'fontWeight' | 'fontWeightBold'): string | number;
175+
public getOption(key: 'fontWeight' | 'fontWeightBold'): FontWeight;
176176
public getOption(key: string): any;
177177
public getOption(key: any): any {
178178
return this._core.optionsService.getOption(key);

typings/xterm.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ declare module 'xterm' {
948948
* Retrieves an option's value from the terminal.
949949
* @param key The option key.
950950
*/
951-
getOption(key: 'fontWeight' | 'fontWeightBold'): string | number;
951+
getOption(key: 'fontWeight' | 'fontWeightBold'): FontWeight;
952952
/**
953953
* Retrieves an option's value from the terminal.
954954
* @param key The option key.

0 commit comments

Comments
 (0)