Move Shared interfaces into a new typings file

This will enable sharing the internal interface with addons (and catching
breakages early)
This commit is contained in:
Daniel Imms
2018-01-19 09:48:33 -08:00
parent 78a63d4860
commit e4abd4dd8a
34 changed files with 307 additions and 317 deletions
-6
View File
@@ -3,14 +3,8 @@
* @license MIT
*/
export type LinkMatcherHandler = (event: MouseEvent, uri: string) => boolean | void;
export type LinkMatcherValidationCallback = (uri: string, callback: (isValid: boolean) => void) => void;
export type CustomKeyEventHandler = (event: KeyboardEvent) => boolean;
export type CharData = [number, string, number, number];
export type LineData = CharData[];
export enum LinkHoverEventTypes {
HOVER = 'linkhover',
TOOLTIP = 'linktooltip',