]> git.proxmox.com Git - mirror_xterm.js.git/blob - src/Types.ts
Merge pull request #577 from Tyriar/549_link_priority
[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 = (uri: string) => void;
14 export type LinkMatcherValidationCallback = (uri: string, callback: (isValid: boolean) => void) => void;