Location: {
    hash: string;
    path: string;
    query: Record<string, unknown>;
    state: unknown;
}

Type declaration

  • hash: string

    The URL fragment identifier, beginning with a #.

  • path: string

    The path to the location

  • query: Record<string, unknown>

    The parsed query string parameters. The values are parsed using JSON.parse().

  • state: unknown

    The history state.