File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { getRouteQuery } from '../route'
4
4
describe ( 'getRouteQuery' , ( ) => {
5
5
it ( 'should return an object with string values when kind is "val"' , ( ) => {
6
6
const query = {
7
- key1 : 123 ,
7
+ key1 : ' 123' ,
8
8
key2 : 'abc' ,
9
9
}
10
10
type Query = typeof query
@@ -18,7 +18,7 @@ describe('getRouteQuery', () => {
18
18
19
19
it ( 'should return an object with number conversion functions when kind is not "val"' , ( ) => {
20
20
const query = {
21
- key1 : 123 ,
21
+ key1 : ' 123' ,
22
22
key2 : 'abc' ,
23
23
}
24
24
const result = getRouteQuery ( query ) ( 'fn' )
Original file line number Diff line number Diff line change 1
1
// type LocationQueryValue = string | number | null
2
- // export type LocationQuery = Record<string, LocationQueryValue>
3
2
4
- import type { LocationQuery } from 'vue-router/auto'
3
+ import type { LocationQueryValue } from 'vue-router/auto'
4
+
5
+ type LocationQuery = {
6
+ [ x : string ] : LocationQueryValue | LocationQueryValue [ ]
7
+ }
5
8
6
9
type Kind = 'fn' | 'val'
7
10
You can’t perform that action at this time.
0 commit comments