]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
add couple more test
authorpikax <carlos@hypermob.co.uk>
Fri, 9 Apr 2021 12:19:38 +0000 (13:19 +0100)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Thu, 30 Jun 2022 07:59:00 +0000 (09:59 +0200)
test-dts/namedRoutes.test-d.ts

index d7fbf19d50b94c6349b7f780391c5d4629142f08..806de2fe96ec92ac640dfd294e69bb7f566c4d66 100644 (file)
@@ -35,7 +35,7 @@ const routes = [
     children: [
       {
         name: '2',
-        children: [{ name: '3' }],
+        children: [{ name: '3', children: [{ name: '4' }] }],
       },
     ],
   },
@@ -50,6 +50,9 @@ typed.tt
 typed[1]
 typed[2]
 typed[3]
+typed[4]
+//@ts-expect-error
+typed['non-existing']
 
 declare module './index' {
   interface NamedLocationMap {