ResolvedChain
The merged result of a chain.
The merged result of a chain.
Import#
ts
import type { ResolvedChain } from "@shadow-js/dusk/server";
Signature#
ts
interface ResolvedChain {
readonly metadata: Metadata;
readonly viewport: Viewport;
readonly links: readonly LinkDescriptor[];
readonly meta: readonly MetaDescriptor[];
readonly headers: Readonly<Record<string, string>>;
/** The `metadataBase` of the merged metadata, or undefined. */
readonly base: URL | undefined;
/** The pathname the chain was resolved for (`/` when unknown). */
readonly pathname?: string | undefined;
/** The trailing-slash policy the chain was resolved with. */
readonly trailingSlash?: "never" | "always" | "preserve" | undefined;
}
Members#
| Name | Type | Description |
|---|---|---|
metadata |
readonly metadata: Metadata |
|
viewport |
readonly viewport: Viewport |
|
links |
readonly links: readonly LinkDescriptor[] |
|
meta |
readonly meta: readonly MetaDescriptor[] |
|
headers |
readonly headers: Readonly<Record<string, string>> |
|
base |
readonly base: URL | undefined |
The metadataBase of the merged metadata, or undefined. |
pathname? |
readonly pathname?: string | undefined |
The pathname the chain was resolved for (/ when unknown). |
trailingSlash? |
readonly trailingSlash?: "never" | "always" | "preserve" | undefined |
The trailing-slash policy the chain was resolved with. |