Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ts warning explanation
Browse files Browse the repository at this point in the history
oleksandr-danylchenko committed Nov 18, 2024
1 parent 6b19bbc commit e4af5e5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -30,7 +30,11 @@ export const useAnnotationQuoteIdling = (
newTarget: { selector: newSelector }
} = targetUpdated;

// The generic type support in the `Update` was added in https://github.com/annotorious/annotorious/pull/476

// @ts-expect-error: requires generic `TextSelector` type support
const oldQuotes = oldSelector.map(({ quote }) => quote);
// @ts-expect-error: requires generic `TextSelector` type support
const newQuotes = newSelector.map(({ quote }) => quote);

return dequal(oldQuotes, newQuotes);

0 comments on commit e4af5e5

Please sign in to comment.