Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
style: lint Route interface (#8822)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 9, 2022
1 parent 5a32927 commit aec07f4
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions packages/nuxt/src/app/plugins/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ import { callWithNuxt } from '../nuxt'
import { globalMiddleware } from '#build/middleware'

interface Route {
/** Percentage encoded pathname section of the URL. */
path: string;
/** The whole location including the `search` and `hash`. */
fullPath: string;
/** Object representation of the `search` property of the current location. */
query: Record<string, any>;
/** Hash of the current location. If present, starts with a `#`. */
hash: string;
/** Name of the matched record */
name: string | null | undefined;
/** Object of decoded params extracted from the `path`. */
params: Record<string, any>;
/**
* The location we were initially trying to access before ending up
* on the current location.
*/
redirectedFrom: Route | undefined;
/** Merged `meta` properties from all of the matched route records. */
meta: Record<string, any>;
/** Percentage encoded pathname section of the URL. */
path: string
/** The whole location including the `search` and `hash`. */
fullPath: string
/** Object representation of the `search` property of the current location. */
query: Record<string, any>
/** Hash of the current location. If present, starts with a `#`. */
hash: string
/** Name of the matched record */
name: string | null | undefined
/** Object of decoded params extracted from the `path`. */
params: Record<string, any>
/**
* The location we were initially trying to access before ending up
* on the current location.
*/
redirectedFrom: Route | undefined
/** Merged `meta` properties from all of the matched route records. */
meta: Record<string, any>
}

function getRouteFromPath (fullPath: string | Partial<Route>) {
Expand Down

0 comments on commit aec07f4

Please sign in to comment.