1 parent a3d3ac7 commit 831b1fbCopy full SHA for 831b1fb
1 file changed
.changeset/headersfunctionargs.md
@@ -12,9 +12,9 @@
12
add `HeadersFunctionArgs` type to be consistent with loaders/actions/meta and allows for using `function`
13
14
```tsx
15
-import type { HeadersFunctionArgs } from '@remix-run/*';
+import type { HeadersArgs } from '@remix-run/node'; // or cloudflare/deno
16
17
-export function headers({ loaderHeaders }: HeadersFunctionArgs) {
+export function headers({ loaderHeaders }: HeadersArgs) {
18
return {
19
"x-my-custom-thing": loaderHeaders.get("x-my-custom-thing") || "fallback"
20
}
0 commit comments