Skip to content

Commit

Permalink
fix(routing): generate correct routes.gen.d.ts for dynamic segments (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
blueagler committed Feb 22, 2024
1 parent b05b7ae commit a03a2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/qwik-labs/src-vite/qwik-types/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function toParams(route: string) {
const parts = route.split('/');
parts.forEach((part) => {
if (part.startsWith('[') && part.endsWith(']')) {
params.push(part.substring(part.startsWith('...') ? 4 : 1, part.length - 1));
params.push(part.substring(part.startsWith('[...') ? 4 : 1, part.length - 1));
}
});
return params;
Expand Down

0 comments on commit a03a2f9

Please sign in to comment.