Skip to content

Update types#167

Merged
paulgv merged 2 commits intonuxt-modules:masterfrom
777genius:patch-1
Jan 14, 2019
Merged

Update types#167
paulgv merged 2 commits intonuxt-modules:masterfrom
777genius:patch-1

Conversation

@777genius
Copy link
Copy Markdown

That's what RawLocation is:

export type RawLocation = string | Location;

export interface Location {
  name?: string;
  path?: string;
  hash?: string;
  query?: Dictionary<string | string[]>;
  params?: Dictionary<string>;
  append?: boolean;
  replace?: boolean;
}

This type, for example, is used in the "push" method:

push (location: RawLocation, onComplete?: Function, onAbort?: ErrorHandler): void;

Without this fix, I had a error:

image

777genius and others added 2 commits December 9, 2018 22:58
That's what RawLocation is:

```ts
export type RawLocation = string | Location;

export interface Location {
  name?: string;
  path?: string;
  hash?: string;
  query?: Dictionary<string | string[]>;
  params?: Dictionary<string>;
  append?: boolean;
  replace?: boolean;
}
```
@777genius
Copy link
Copy Markdown
Author

These changes will not spoil anything, but only allow us to use the necessary route object.

@paulgv paulgv merged commit 225e700 into nuxt-modules:master Jan 14, 2019
@paulgv
Copy link
Copy Markdown
Collaborator

paulgv commented Jan 14, 2019

Thanks @iliyaZelenko !

@777genius 777genius deleted the patch-1 branch July 24, 2019 18:36
farnabaz pushed a commit to farnabaz/i18n-module that referenced this pull request Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants