Add tests

This commit is contained in:
Daniel Imms
2017-02-27 09:47:36 -08:00
parent 6198556e50
commit 4c99c032ca
6 changed files with 102 additions and 10 deletions
+9 -1
View File
@@ -2,7 +2,8 @@
* @license MIT
*/
import { LinkMatcherValidationCallback } from './Types';
import { LinkMatcherOptions } from './Interfaces';
import { LinkMatcherHandler, LinkMatcherValidationCallback } from './Types';
export interface IBrowser {
isNode: boolean;
@@ -52,6 +53,13 @@ export interface ICharMeasure {
measure(): void;
}
export interface ILinkifier {
linkifyRow(rowIndex: number): void;
attachHypertextLinkHandler(handler: LinkMatcherHandler): void;
registerLinkMatcher(regex: RegExp, handler: LinkMatcherHandler, options?: LinkMatcherOptions): number;
deregisterLinkMatcher(matcherId: number): boolean;
}
interface ICircularList<T> {
length: number;
maxLength: number;