Skip to content

Commit

Permalink
Fix type import in redirectBack (#444)
Browse files Browse the repository at this point in the history
Errors:
```
import { UNSAFE_DataWithResponseInit, data } from "react-router";
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'UNSAFE_DataWithResponseInit' not found.
```

fixes #437
  • Loading branch information
nichtsam authored Jan 16, 2025
1 parent 1325b68 commit 1b912fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"node": ">=20.0.0"
},
"type": "module",
"funding": [
"https://github.com/sponsors/sergiodxa"
],
"funding": ["https://github.com/sponsors/sergiodxa"],
"exports": {
"./package.json": "./package.json",
"./promise": "./build/common/promise.js",
Expand Down Expand Up @@ -150,9 +148,5 @@
"dependencies": {
"type-fest": "^4.30.0"
},
"files": [
"build",
"package.json",
"README.md"
]
"files": ["build", "package.json", "README.md"]
}
2 changes: 1 addition & 1 deletion src/server/redirect-back.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UNSAFE_DataWithResponseInit, data } from "react-router";
import { type UNSAFE_DataWithResponseInit, data } from "react-router";

/**
* Create a new Response with a redirect set to the URL the user was before.
Expand Down

0 comments on commit 1b912fd

Please sign in to comment.