Created
March 16, 2019 01:09
-
-
Save uriannrima/f83bf13cec7fc1df5f8d2224c267dcc9 to your computer and use it in GitHub Desktop.
Vue router shims to allow Next router location
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
import { RawLocation } from 'vue-router' | |
declare module 'vue-router' { | |
interface Next<T extends Vue = Vue> { | |
(to?: RawLocation | false | ((vm: T) => any) | void): void | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Verify if it is still valid.