Files
Siteforge/shared/note-format.d.ts
T

15 lines
563 B
TypeScript

export type NoteAnchorId = 'scripture' | 'commentary' | 'questions' | 'general'
export interface NoteEntry {
id: string
anchor: NoteAnchorId
html: string
updatedAt: string | null
}
export const NOTE_ANCHORS: NoteAnchorId[]
export const NOTE_ANCHOR_LABELS: Record<NoteAnchorId, string>
export function newNoteId(): string
export function parseNoteEntries(raw: string): NoteEntry[]
export function serializeNoteEntries(entries: NoteEntry[]): string
export function noteHtmlToText(html: string): string
export function noteEntriesToText(raw: string): string