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 d13fe94 commit 882acffCopy full SHA for 882acff
src/core/definePage.ts
@@ -225,10 +225,12 @@ export function extractDefinePageNameAndPath(
225
prop.value.type !== 'StringLiteral' &&
226
(prop.value.type !== 'BooleanLiteral' || prop.value.value !== false)
227
) {
228
- warn(`route name must be a string literal or false. Found in "${id}".`)
+ warn(
229
+ `route name must be a string literal or false. Found in "${id}".`
230
+ )
231
} else {
232
// TODO: why does TS not narrow down the type?
- routeInfo.name = (prop.value.value as string | false)
233
+ routeInfo.name = prop.value.value as string | false
234
}
235
} else if (prop.key.name === 'path') {
236
if (prop.value.type !== 'StringLiteral') {
0 commit comments