Skip to content

Commit

Permalink
Add ISearchDecorationOptions to the d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Mar 21, 2022
1 parent 7a70db7 commit 09d1a01
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions addons/xterm-addon-search/typings/xterm-addon-search.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,27 @@ declare module 'xterm-addon-search' {
* `findNext`, not `findPrevious`.
*/
incremental?: boolean;

/**
* When set, will highlight all instances of the word on search and show
* them in the overview ruler if it's enabled.
*/
decorations?: ISearchDecorationOptions;
}

/**
* Options for showing decorations when searching.
*/
interface ISearchDecorationOptions {
/**
* The color of a match.
*/
matchColor: string;

/**
* The color for the currently selected match.
*/
selectedColor: string;
}

/**
Expand Down

0 comments on commit 09d1a01

Please sign in to comment.