Browse Source

types: use `satisfies` to replace `as` in `src/router/modules`

xiaoxian521 1 year ago
parent
commit
b4fd313082

+ 1 - 1
src/router/modules/able.ts

@@ -183,4 +183,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/about.ts

@@ -18,4 +18,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/components.ts

@@ -171,4 +171,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/editor.ts

@@ -20,4 +20,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/error.ts

@@ -36,4 +36,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/flowchart.ts

@@ -19,4 +19,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/formdesign.ts

@@ -22,4 +22,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/guide.ts

@@ -19,4 +19,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/home.ts

@@ -24,4 +24,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/list.ts

@@ -21,4 +21,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/menuoverflow.ts

@@ -19,4 +19,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/nested.ts

@@ -79,4 +79,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/ppt.ts

@@ -21,4 +21,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/puredoc.ts

@@ -21,4 +21,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/pureutils.ts

@@ -21,4 +21,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/remaining.ts

@@ -39,4 +39,4 @@ export default [
       rank: 103
     }
   }
-] as Array<RouteConfigsTable>;
+] satisfies Array<RouteConfigsTable>;

+ 1 - 1
src/router/modules/result.ts

@@ -27,4 +27,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;

+ 1 - 1
src/router/modules/table.ts

@@ -28,4 +28,4 @@ export default {
       }
     }
   ]
-} as RouteConfigsTable;
+} satisfies RouteConfigsTable;