Skip to content

Commit df5c3aa

Browse files
authored
fix: change the empty object type {} to use TS Record utility type (#21)
1 parent 8e5f629 commit df5c3aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/routes-gen/src/export-routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const exportRoutes = ({
3636
return ` "${route.path}": ${
3737
params.length > 0
3838
? `{ ${params.map((path) => `"${path}": string`).join(", ")} }`
39-
: "{}"
39+
: "Record<string, never>"
4040
};`;
4141
})
4242
.join("\n");

0 commit comments

Comments
 (0)