Skip to content

Commit 1dbda37

Browse files
authored
Merge pull request #83 from oleksandr-danylchenko/fix-text-anno-methods-override-types
Added text-specific `setStyle` override
2 parents 263a67e + 7278776 commit 1dbda37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/text-annotator/src/TextAnnotator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export interface TextAnnotator<E extends unknown = TextAnnotation> extends Annot
1717

1818
element: HTMLElement;
1919

20+
setStyle(style: HighlightStyleExpression | undefined): void;
21+
2022
// Returns true if successful (or false if the annotation is not currently rendered)
2123
scrollIntoView(annotation: TextAnnotation): boolean;
2224

0 commit comments

Comments
 (0)