trilium/apps/web-clipper/entrypoints/content
Elian Doran e4877e46f2
fix(web-clipper): satisfy stricter tsconfig generated by wxt 0.21
wxt 0.21 enables verbatimModuleSyntax and noUncheckedIndexedAccess in
the generated .wxt/tsconfig.json (wxt-dev/wxt#2512), which also made
the rolldown-based build reject the type-as-value Rect import.

- import Rect with an inline type specifier
- getActiveTab() now throws instead of returning a possibly-undefined
  tabs[0]
- narrow indexed accesses in absoluteUrl(), pageTitle() and the
  protocol version parsing

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 19:30:23 +03:00
..
index.ts fix(web-clipper): satisfy stricter tsconfig generated by wxt 0.21 2026-07-30 19:30:23 +03:00