Skip to content

Commit

Permalink
refactor: code format
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Mar 16, 2020
1 parent 1c8e802 commit d3edd63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/router.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import Vue, { ComponentOptions, PluginFunction, AsyncComponent } from 'vue'

type Component = ComponentOptions<Vue> | typeof Vue | AsyncComponent
type Dictionary < T > = { [key: string]: T }
type Dictionary<T> = { [key: string]: T }
type ErrorHandler = (err: Error) => void

export type RouterMode = 'hash' | 'history' | 'abstract'
export type RawLocation = string | Location
export type RedirectOption = RawLocation | ((to: Route) => RawLocation)
export type NavigationGuard < V extends Vue = Vue > = (
export type NavigationGuard<V extends Vue = Vue> = (
to: Route,
from: Route,
next: (to?: RawLocation | false | ((vm: V) => any) | void) => void
Expand Down

0 comments on commit d3edd63

Please sign in to comment.