annotorious icon indicating copy to clipboard operation
annotorious copied to clipboard

@r6o #47 Made `useAnnotator` generic loose w/ default `Annotator<any, unknown>`

Open oleksandr-danylchenko opened this issue 1 year ago • 0 comments

Issue

This PR is a follow-up of the #374. I faced the issue with using a TextAnnotator<W3CTextAnnotation> with the useAnnotator: image

That's because:

the TextAnnotationStore doesn't fully extend the Store type: https://github.com/recogito/text-annotator-js/blob/bd9e75cd682b809c54c46a3b78bf8bcaeff4a3b2/packages/text-annotator/src/state/TextAnnotationStore.ts#L4-L12 Unfortunately, it blocks users from accessing the Core's store with typing relevant to the TextAnnotation 🤷🏻‍♂️

oleksandr-danylchenko avatar Feb 26 '24 10:02 oleksandr-danylchenko