Use Terminal public API type in search addon

Part of #1220
This commit is contained in:
Daniel Imms
2018-01-19 09:30:24 -08:00
parent a9f69965fe
commit 682eb2f861
3 changed files with 39 additions and 16 deletions
+19
View File
@@ -0,0 +1,19 @@
/**
* Copyright (c) 2018 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { Terminal } from 'xterm';
export interface ISearchAddonTerminal extends Terminal {
__searchHelper: ISearchHelper;
// TODO: Reuse ITerminal from core
buffer: any;
selectionManager: any;
}
export interface ISearchHelper {
findNext(term: string): boolean;
findPrevious(term: string): boolean;
}