Open
Description
Version
3.0.1
Reproduction link
https://jsfiddle.net/nrseLmca/2/
Steps to reproduce
There is nothing special to reproduce. The provided fiddle just demonstrates the code we used.
What is expected?
It is expected that all types needed to configure or use vue-router are directly exported from index.d.ts.
What is actually happening?
Only the main types are directly exported.
If you want to create a new Router instance with a custom scrollBehaviour function in Typescript you cannot type it correctly with the types that are exported directly from the module. You have to import them explicitly from the router.d.ts file (where there aren't exported either but somehow it works).
But this raises "no-submodule-imports" from tslint.