UNPKG

@nu-art/thunder

Version:

Thunder - React & Typescript based frontend framework

25 lines (24 loc) 934 B
/** * Created by tacb0ss on 27/07/2018. */ import { Module, QueryParams } from "@nu-art/ts-common"; import { History, LocationDescriptorObject } from "history"; export declare class BrowserHistoryModule_Class extends Module<void> { private readonly history; constructor(); push(push: LocationDescriptorObject): void; replace(push: LocationDescriptorObject): void; private composeQuery; private getEncodedQueryParams; getQueryParams(): QueryParams; setQuery(queryParams: QueryParams): void; addQueryParam(key: string, value: string): void; removeQueryParam(key: string): void; setUrl(url: string, queryParams?: QueryParams): void; private createHistoryDataFromQueryParams; private updateQueryParams; getOrigin(): string; getCurrent(): import("history").Location<any>; getHistory(): History<any>; } export declare const BrowserHistoryModule: BrowserHistoryModule_Class;