From 765297e67cf599cd3a4d1d4ff56dd23e8fa6bbbf Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Sat, 15 Jun 2019 00:11:34 -0700 Subject: [PATCH] Add addon typings --- .../typings/xterm-addon-webgl.d.ts | 52 ++----------------- 1 file changed, 5 insertions(+), 47 deletions(-) diff --git a/addons/xterm-addon-webgl/typings/xterm-addon-webgl.d.ts b/addons/xterm-addon-webgl/typings/xterm-addon-webgl.d.ts index 94bc5297..5199a260 100644 --- a/addons/xterm-addon-webgl/typings/xterm-addon-webgl.d.ts +++ b/addons/xterm-addon-webgl/typings/xterm-addon-webgl.d.ts @@ -3,41 +3,15 @@ * @license MIT */ -import { Terminal, ILinkMatcherOptions, IDisposable, ITerminalAddon } from 'xterm'; - -declare module 'xterm-addon-search' { - /** - * Options for a search. - */ - export interface ISearchOptions { - /** - * Whether the search term is a regex. - */ - regex?: boolean; - - /** - * Whether to search for a whole word, the result is only valid if it's - * suppounded in "non-word" characters such as `_`, `(`, `)` or space. - */ - wholeWord?: boolean; - - /** - * Whether the search is case sensitive. - */ - caseSensitive?: boolean; - - /** - * Whether to do an indcremental search, this will expand the selection if it - * still matches the term the user typed. Note that this only affects - * `findNext`, not `findPrevious`. - */ - incremental?: boolean; - } +import { Terminal, IDisposable, ITerminalAddon } from 'xterm'; +declare module 'xterm-addon-webgl' { /** * An xterm.js addon that provides search functionality. */ - export class SearchAddon implements ITerminalAddon { + export class WebglAddon implements ITerminalAddon { + constructor(preserveDrawingBuffer?: boolean); + /** * Activates the addon * @param terminal The terminal the addon is being loaded in. @@ -48,21 +22,5 @@ declare module 'xterm-addon-search' { * Disposes the addon. */ public dispose(): void; - - /** - * Search forwards for the next result that matches the search term and - * options. - * @param term The search term. - * @param searchOptions The options for the search. - */ - public findNext(term: string, searchOptions?: ISearchOptions): boolean; - - /** - * Search backwards for the previous result that matches the search term and - * options. - * @param term The search term. - * @param searchOptions The options for the search. - */ - public findPrevious(term: string, searchOptions?: ISearchOptions): boolean; } }