We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71c8473 commit 8960076Copy full SHA for 8960076
typescript/packages/jumble/src/routes.ts
@@ -10,7 +10,7 @@ export const ROUTES = {
10
spellbookIndex: '/spellbook',
11
spellbookDetail: '/spellbook/:spellId',
12
spellbookLaunch: '/spellbook/launch/:spellId',
13
- utilityJsonGen: '/utility/jsongen',
+ utilityJsonGen: '/utility/json-gen',
14
} as const;
15
16
// Infer parameter types from route patterns
@@ -41,9 +41,6 @@ export const matchesRoute = <T extends keyof typeof ROUTES>(
41
return matchPath(ROUTES[route], path) !== null;
42
};
43
44
-console.log(createPath('spellbookDetail', { spellId: '123' }))
45
-
46
47
export function createPathWithQuery<T extends keyof typeof ROUTES>(
48
route: T,
49
params?: RouteParamsMap[T],
0 commit comments