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