mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
refactor: remove unnecessary interface exports
- Remove export from IHighlight and IMultiHighlight interfaces - Remove export from ISelectedDecoration interface - Remove export from ISearchPosition interface - Keep ISearchResult exported as it's used across multiple files - Make ISelectedDecoration extend IDisposable for consistency
This commit is contained in:
@@ -11,7 +11,7 @@ import type { ISearchResult } from './SearchEngine';
|
||||
/**
|
||||
* Interface for managing a highlight decoration.
|
||||
*/
|
||||
export interface IHighlight extends IDisposable {
|
||||
interface IHighlight extends IDisposable {
|
||||
decoration: IDecoration;
|
||||
match: ISearchResult;
|
||||
}
|
||||
@@ -19,7 +19,7 @@ export interface IHighlight extends IDisposable {
|
||||
/**
|
||||
* Interface for managing multiple decorations for a single match.
|
||||
*/
|
||||
export interface IMultiHighlight extends IDisposable {
|
||||
interface IMultiHighlight extends IDisposable {
|
||||
decorations: IDecoration[];
|
||||
match: ISearchResult;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { SearchLineCache } from './SearchLineCache';
|
||||
/**
|
||||
* Represents the position to start a search from.
|
||||
*/
|
||||
export interface ISearchPosition {
|
||||
interface ISearchPosition {
|
||||
startCol: number;
|
||||
startRow: number;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
import type { ISearchResultChangeEvent } from '@xterm/addon-search';
|
||||
import type { IDisposable } from '@xterm/xterm';
|
||||
import { Emitter, Event } from 'vs/base/common/event';
|
||||
import { Disposable } from 'vs/base/common/lifecycle';
|
||||
import type { ISearchResult } from './SearchEngine';
|
||||
@@ -11,9 +12,8 @@ import type { ISearchResult } from './SearchEngine';
|
||||
/**
|
||||
* Interface for managing a currently selected decoration.
|
||||
*/
|
||||
export interface ISelectedDecoration {
|
||||
interface ISelectedDecoration extends IDisposable {
|
||||
match: ISearchResult;
|
||||
dispose(): void;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -18,6 +18,9 @@
|
||||
"common/*": [
|
||||
"../../../src/common/*"
|
||||
],
|
||||
"browser/*": [
|
||||
"../../../src/browser/*"
|
||||
],
|
||||
"vs/*": [
|
||||
"../../../src/vs/*"
|
||||
],
|
||||
@@ -34,6 +37,9 @@
|
||||
{
|
||||
"path": "../../../src/common"
|
||||
},
|
||||
{
|
||||
"path": "../../../src/browser"
|
||||
},
|
||||
{
|
||||
"path": "../../../src/vs"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user