types: test cases typing

This commit is contained in:
chenjiahan
2021-02-11 13:04:00 +08:00
parent 7a5fb894d2
commit e2e0f66fe6
87 changed files with 129 additions and 121 deletions
@@ -11,7 +11,7 @@ function getMockRouter() {
name: '/',
path: '/',
});
const push = (val) => {
const push = (val: unknown) => {
if (typeof val === 'string') {
$route.name = val;
$route.path = val;