[]previous and next page

LinkDescriptor

<link> descriptor of the links export (React Router style).

<link> descriptor of the links export (React Router style).

Import#

ts
import type { LinkDescriptor } from "@shadow-js/dusk";

Signature#

ts
interface LinkDescriptor {
  readonly rel: string;
  readonly href?: string;
  readonly hrefLang?: string;
  readonly media?: string;
  readonly type?: string;
  readonly sizes?: string;
  readonly as?: string;
  readonly crossOrigin?: "anonymous" | "use-credentials";
  readonly imageSrcSet?: string;
  readonly imageSizes?: string;
  readonly title?: string;
  readonly color?: string;
}

Members#

Name Type Description
rel readonly rel: string
href? readonly href?: string
hrefLang? readonly hrefLang?: string
media? readonly media?: string
type? readonly type?: string
sizes? readonly sizes?: string
as? readonly as?: string
crossOrigin? readonly crossOrigin?: "anonymous" | "use-credentials"
imageSrcSet? readonly imageSrcSet?: string
imageSizes? readonly imageSizes?: string
title? readonly title?: string
color? readonly color?: string