Skip to content

BrokenLink

A single link that does not resolve.

Import:

import type { BrokenLink } from '@mnaoumov/typescript-dev-toolkit/docs-site/link-check';

Signature:

export interface BrokenLink

Properties

PropertyTypeDescription
httpStatus?numberThe HTTP status returned by an external link, when BrokenLink.reason is external-error. 0 denotes a network-level failure (timeout, DNS, connection refused).
pageUrlstringThe absolute URL of the page that contains the broken link.
reason'external-error' | 'missing-fragment' | 'missing-page'Why the link is considered broken.
targetUrlstringThe resolved absolute URL the link points at.

Links to this page: