Fix rename clipboard selection for clarity

This commit is contained in:
Ayman Bagabas
2023-09-21 10:33:44 -04:00
parent b22762b472
commit 092aeaeb6f
6 changed files with 27 additions and 27 deletions
+3 -3
View File
@@ -1863,7 +1863,7 @@ declare module 'xterm' {
* @param selection The clipboard selection to read.
* @returns A promise that resolves with the base64 encoded data.
*/
readText(selection: ClipboardSelection): Promise<string>;
readText(selection: ClipboardSelectionType): Promise<string>;
/**
* Sets the clipboard content.
@@ -1871,7 +1871,7 @@ declare module 'xterm' {
* @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>;
writeText(selection: ClipboardSelectionType, data: string): Promise<void>;
}
/**
@@ -1881,7 +1881,7 @@ declare module 'xterm' {
* - PRIMARY `p`: The primary clipboard. This is provided for compatibility
* with Linux X11.
*/
export const enum ClipboardSelection {
export const enum ClipboardSelectionType {
SYSTEM = 'c',
PRIMARY = 'p',
}