]> git.proxmox.com Git - mirror_xterm.js.git/blob - src/Types.ts
Merge pull request #926 from ficristo/search-fix
[mirror_xterm.js.git] / src / Types.ts
1 /**
2 * @license MIT
3 */
4
5 export type LinkMatcher = {
6 id: number,
7 regex: RegExp,
8 handler: LinkMatcherHandler,
9 matchIndex?: number,
10 validationCallback?: LinkMatcherValidationCallback,
11 priority?: number
12 };
13 export type LinkMatcherHandler = (event: MouseEvent, uri: string) => boolean | void;
14 export type LinkMatcherValidationCallback = (uri: string, element: HTMLElement, callback: (isValid: boolean) => void) => void;