Skip to content

Commit

Permalink
fix: tsc error
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Jul 26, 2023
1 parent 15d8cce commit 9ea256b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/annotation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function serializeAnnotations(
skipEmbeddingItemData: boolean = false,
skipCitation: boolean = false,
) {
const storedCitationItems = [];
const storedCitationItems: Record<string, any>[] = [];
let html = "";
for (const annotation of annotations) {
const attachmentItem = Zotero.Items.get(annotation.attachmentItemID);
Expand Down Expand Up @@ -92,7 +92,7 @@ function serializeAnnotations(
}

const item = storedCitationItems.find((item) =>
item.uris.some((uri) => uris.includes(uri)),
item.uris.some((uri: string) => uris.includes(uri)),
);
if (!item) {
storedCitationItems.push({ uris, itemData });
Expand Down

0 comments on commit 9ea256b

Please sign in to comment.