Skip to content

Commit 831b1fb

Browse files
Update .changeset/headersfunctionargs.md
Co-authored-by: Michaël De Boey <info@michaeldeboey.be>
1 parent a3d3ac7 commit 831b1fb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.changeset/headersfunctionargs.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
add `HeadersFunctionArgs` type to be consistent with loaders/actions/meta and allows for using `function`
1313

1414
```tsx
15-
import type { HeadersFunctionArgs } from '@remix-run/*';
15+
import type { HeadersArgs } from '@remix-run/node'; // or cloudflare/deno
1616

17-
export function headers({ loaderHeaders }: HeadersFunctionArgs) {
17+
export function headers({ loaderHeaders }: HeadersArgs) {
1818
return {
1919
"x-my-custom-thing": loaderHeaders.get("x-my-custom-thing") || "fallback"
2020
}

0 commit comments

Comments
 (0)