Fix tsconfigs, IDisposable, and add comments

This commit is contained in:
Ayman Bagabas
2023-09-21 10:26:46 -04:00
parent db5bfc7525
commit b22762b472
9 changed files with 26 additions and 34 deletions
+8 -9
View File
@@ -1073,12 +1073,7 @@ declare module 'xterm' {
* clipboard to read/write clipboard data.
* @param provider The provider to register.
*/
registerClipboardProvider(provider: IClipboardProvider): void;
/**
* Deregisters the active clipboard provider.
*/
deregisterClipboardProvider(): void;
registerClipboardProvider(provider: IClipboardProvider): IDisposable;
/**
* Gets whether the terminal has an active selection.
@@ -1873,14 +1868,18 @@ declare module 'xterm' {
/**
* Sets the clipboard content.
* @param selection The clipboard selection to set.
* @param data The base64 encoded data to set. If the data is invalid base64, the clipboard is
* cleared.
* @param data The base64 encoded data to set. If the data is invalid
* base64, the clipboard is cleared.
*/
writeText(selection: ClipboardSelection, data: string): Promise<void>;
}
/**
* Clipboard selection type.
* Clipboard selection type. This is used to specify which selection buffer to
* read or write to.
* - SYSTEM `c`: The system clipboard.
* - PRIMARY `p`: The primary clipboard. This is provided for compatibility
* with Linux X11.
*/
export const enum ClipboardSelection {
SYSTEM = 'c',