Skip to content

Commit

Permalink
add highlight type
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhb committed Apr 5, 2023
1 parent 9193a88 commit 9bbf502
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,20 @@ export interface Label {
name: string;
}

export enum HighlightType {
Highlight = "HIGHLIGHT",
Note = "NOTE",
Redaction = "REDACTION",
}

export interface Highlight {
id: string;
quote: string;
annotation: string;
patch: string;
updatedAt: string;
labels?: Label[];
type: HighlightType;
}

export interface HighlightPoint {
Expand Down Expand Up @@ -149,6 +156,7 @@ export const loadArticles = async (
annotation
patch
updatedAt
type
labels {
name
}
Expand Down

0 comments on commit 9bbf502

Please sign in to comment.