Skip to content

Export RecognitionStatuses from index - #38

Merged
philips merged 1 commit into
mainfrom
export-recognition-statuses-issue-145
Jul 29, 2026
Merged

Export RecognitionStatuses from index#38
philips merged 1 commit into
mainfrom
export-recognition-statuses-issue-145

Conversation

@philips-clanker

Copy link
Copy Markdown
Collaborator

Small addition needed by supernote-obsidian-plugin#145: the plugin's registerPageTextProcessor OCR hook is being extended to expose IPage.RECOGNSTATUS to external companion plugins, and should type it as this enum rather than a bare string so consumers can write ctx.recognitionStatus === RecognitionStatuses.DONE instead of comparing against magic '0'/'1'/'2' strings.

RecognitionStatuses already existed in format.ts and is used internally (IPage.RECOGNSTATUS: RecognitionStatuses) - it just wasn't re-exported from index.ts alongside ILink/IPage.

Stacked on by the corresponding supernote-obsidian-plugin PR, which bumps its submodule pointer to this branch.

Test plan

  • npm run build - clean

Needed by supernote-obsidian-plugin#145: the OCR plugin hook wants to
expose IPage.RECOGNSTATUS to external processors typed as this enum,
not a bare string, so consumers can compare against named values
(RecognitionStatuses.DONE) instead of magic '0'/'1'/'2' strings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants