Skip to content

Instantly share code, notes, and snippets.

@uriannrima
Created March 16, 2019 01:09
Show Gist options
  • Save uriannrima/f83bf13cec7fc1df5f8d2224c267dcc9 to your computer and use it in GitHub Desktop.
Save uriannrima/f83bf13cec7fc1df5f8d2224c267dcc9 to your computer and use it in GitHub Desktop.
Vue router shims to allow Next router location
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
}
}
@uriannrima
Copy link
Author

Verify if it is still valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment