Improve api

This commit is contained in:
Daniel Imms
2020-05-05 18:26:07 -07:00
parent 484883f442
commit 75e4e2089e
+3 -2
View File
@@ -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;
}
/**