add missing types

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2020-07-20 17:10:08 +01:00
parent 9fca422de7
commit 7a05476c50
2 changed files with 6 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ export interface IPosition {
}
type Callback = (part: Part, startIdx: number, endIdx: number) => void;
type Predicate = (index: number, offset: number, part: Part) => boolean;
export type Predicate = (index: number, offset: number, part: Part) => boolean;
export default class DocumentPosition implements IPosition {
constructor(public readonly index: number, public readonly offset: number) {