/** * Wikilink index views shared between api and web (issue #47/#48). The index * (`page_links`) is maintained on every content change; these are the read * shapes for the backlinks panel and the pond's missing-pages view. */ /** A page that links to the page being viewed (its backlink). */ export interface BacklinkView { pageId: string; title: string; slug: string; } /** A referenced-but-missing target and the pages that link to it. */ export interface PhantomLinkView { targetSlug: string; referencedBy: BacklinkView[]; }