mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Improve api
This commit is contained in:
Vendored
+3
-2
@@ -1100,11 +1100,12 @@ declare module 'xterm' {
|
||||
interface ILinkProvider {
|
||||
/**
|
||||
* Provides a link a buffer position
|
||||
* @param y The y position of the buffer that is currently active.
|
||||
* @param bufferLineNumber The y position of the buffer to check for links
|
||||
* within.
|
||||
* @param callback The callback to be fired when ready with the resulting
|
||||
* link(s) for the line or `undefined`.
|
||||
*/
|
||||
provideLinks(y: number, callback: (links: ILink[] | undefined) => void): void;
|
||||
provideLinks(bufferLineNumber: number, callback: (links: ILink[] | undefined) => void): void;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user