Make font weight types in ITerminalOption more strict

This commit is contained in:
Daniel Imms
2018-01-23 08:02:48 -08:00
parent f3ecbea3e8
commit 01c95168f2
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -4,7 +4,7 @@
*/
import { ICharset, ILinkMatcherOptions } from './Interfaces';
import { LinkMatcherHandler, LinkMatcherValidationCallback, LineData } from './Types';
import { LinkMatcherHandler, LinkMatcherValidationCallback, LineData, FontWeight } from './Types';
import { IColorSet, IRenderer } from './renderer/Interfaces';
import { IMouseZoneManager } from './input/Interfaces';
@@ -139,8 +139,8 @@ export interface ITerminalOptions {
disableStdin?: boolean;
fontSize?: number;
fontFamily?: string;
fontWeight?: string;
fontWeightBold?: string;
fontWeight?: FontWeight;
fontWeightBold?: FontWeight;
handler?: (data: string) => void;
letterSpacing?: number;
lineHeight?: number;
+2
View File
@@ -16,3 +16,5 @@ export enum LinkHoverEventTypes {
TOOLTIP = 'linktooltip',
LEAVE = 'linkleave'
}
export type FontWeight = 'normal' | 'bold' | 'bolder' | 'lighter' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';