[]previous and next page

HeadersArgs

Arguments of the headers export.

Arguments of the headers export.

Import#

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

Signature#

ts
interface HeadersArgs<P = Readonly<Record<string, string>>, L = unknown> {
  readonly params: P;
  readonly loaderData: L | undefined;
  /** The headers the response already has, from the layers above. */
  readonly parentHeaders: Readonly<Record<string, string>>;
}

Members#

Name Type Description
P P = Readonly<Record<string, string>>
L L = unknown
params readonly params: P
loaderData readonly loaderData: L | undefined
parentHeaders readonly parentHeaders: Readonly<Record<string, string>> The headers the response already has, from the layers above.