Typescript: Location
interface typing for query should include null
#2605
Labels
Typescript
Typescript related issues
Version
3.0.2
Reproduction link
https://router.vuejs.org/guide/essentials/navigation.html
Steps to reproduce
When programmatically navigating on vue router, pass through a dictionary with a param as null. E.g.
What is expected?
Types are expected to work.
The url should be ?foo.
What is actually happening?
It works, but with an error:
Type '{ foo: null; }' is not assignable to type 'Dictionary<string | string[]>'.
The text was updated successfully, but these errors were encountered: