Skip to content

Commit

Permalink
Merge branch 'dev' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish authored Feb 15, 2024
2 parents 328dfaa + 3573596 commit d316123
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/quiet-cups-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": patch
---

Fix type error in Remix config for synchronous `routes` function
4 changes: 3 additions & 1 deletion packages/remix-dev/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ export interface AppConfig {
*/
routes?: (
defineRoutes: DefineRoutesFunction
) => Promise<ReturnType<DefineRoutesFunction>>;
) =>
| ReturnType<DefineRoutesFunction>
| Promise<ReturnType<DefineRoutesFunction>>;

/**
* The path to the browser build, relative to `remix.config.js`. Defaults to
Expand Down

0 comments on commit d316123

Please sign in to comment.