diff --git a/typings/xterm-headless.d.ts b/typings/xterm-headless.d.ts index 55114bf6..1c0a986a 100644 --- a/typings/xterm-headless.d.ts +++ b/typings/xterm-headless.d.ts @@ -544,6 +544,10 @@ declare module 'xterm-headless' { /** * Gets or sets the terminal options. This supports setting multiple options. * + * @example Set a single option + * ```typescript + * terminal.options.fontSize = 12; + * ``` * * @example Set multiple options * ```typescript diff --git a/typings/xterm.d.ts b/typings/xterm.d.ts index e62c5e70..e989cdbc 100644 --- a/typings/xterm.d.ts +++ b/typings/xterm.d.ts @@ -706,6 +706,10 @@ declare module 'xterm' { /** * Gets or sets the terminal options. This supports setting multiple options. * + * @example Set a single option + * ```typescript + * terminal.options.fontSize = 12; + * ``` * * @example Set multiple options * ```typescript