Skip to content

Commit ecd49de

Browse files
Simplified the isNotAnnotatable arg type
1 parent 68d5e26 commit ecd49de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/text-annotator/src/utils/splitAnnotatableRanges.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const NOT_ANNOTATABLE_CLASS = 'not-annotatable';
22

33
export const NOT_ANNOTATABLE_SELECTOR = `.${NOT_ANNOTATABLE_CLASS}`;
44

5-
export const isNotAnnotatable = <T extends Node>(node: T): boolean => {
5+
export const isNotAnnotatable = (node: Node): boolean => {
66
const closestNotAnnotatable = node instanceof HTMLElement
77
? node.closest(NOT_ANNOTATABLE_SELECTOR)
88
: node.parentElement?.closest(NOT_ANNOTATABLE_SELECTOR);

0 commit comments

Comments
 (0)