Include element in validationCallback

Fixes #591
This commit is contained in:
Daniel Imms
2017-03-09 10:23:59 -08:00
parent 2c151f444c
commit b66776a047
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -11,4 +11,4 @@ export type LinkMatcher = {
priority?: number
};
export type LinkMatcherHandler = (event: MouseEvent, uri: string) => boolean | void;
export type LinkMatcherValidationCallback = (uri: string, callback: (isValid: boolean) => void) => void;
export type LinkMatcherValidationCallback = (uri: string, element: HTMLElement, callback: (isValid: boolean) => void) => void;