nuxt-typed-router
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -23,3 +23,3 @@ // @ts-check | ||
const [parentName, parentName2] = route.path.split('/'); | ||
routesInterfaces += `${camelCase(parentName || parentName2)}:{`; | ||
routesInterfaces += `${camelCase(parentName || parentName2 || 'index')}:{`; | ||
route.children.map(r => recursiveTypedRoutes(r, level + 1)); | ||
@@ -26,0 +26,0 @@ routesInterfaces += '},'; |
{ | ||
"name": "nuxt-typed-router", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "Provide autocompletion for pages route names generated by Nuxt router", | ||
@@ -5,0 +5,0 @@ "main": "lib/module.js", |
12692