Type Alias ResolvedLinkTarget

ResolvedLinkTarget:
    | { path: string; state: "resolved" }
    | { state: "unresolvable" }
    | { state: "invalid" }

Type declaration

  • { path: string; state: "resolved" }

    Resolved to an absolute filesystem path (existence NOT checked here).

  • { state: "unresolvable" }

    A relative target with no known authoring file — the caller may route optimistically (it cannot check existence or self-ness generically).

  • { state: "invalid" }

    A malformed $fs: target (not mount-absolute; includes scheme smuggling). Callers MUST render this broken/inert — never as an anchor.