Give event to handler

This commit is contained in:
Daniel Imms
2017-03-04 14:08:05 -08:00
parent 5e2791f981
commit aafb5333b9
2 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -10,5 +10,5 @@ export type LinkMatcher = {
validationCallback?: LinkMatcherValidationCallback,
priority?: number
};
export type LinkMatcherHandler = (uri: string) => void;
export type LinkMatcherHandler = (event: MouseEvent, uri: string) => void;
export type LinkMatcherValidationCallback = (uri: string, callback: (isValid: boolean) => void) => void;