X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2FTypes.ts;h=896b729a8135857b10956c15e4753bcdea9f5245;hb=HEAD;hp=2dbb47effb9080298adfc706ba3c334a5d696530;hpb=b5483898da607ae27dd2df83222534b14ee8738d;p=mirror_xterm.js.git diff --git a/src/Types.ts b/src/Types.ts index 2dbb47e..896b729 100644 --- a/src/Types.ts +++ b/src/Types.ts @@ -10,5 +10,5 @@ export type LinkMatcher = { validationCallback?: LinkMatcherValidationCallback, priority?: number }; -export type LinkMatcherHandler = (uri: string) => void; -export type LinkMatcherValidationCallback = (uri: string, callback: (isValid: boolean) => void) => void; +export type LinkMatcherHandler = (event: MouseEvent, uri: string) => boolean | void; +export type LinkMatcherValidationCallback = (uri: string, element: HTMLElement, callback: (isValid: boolean) => void) => void;