UNPKG

@soleil-se/app-util

Version:

Utility functions for WebApps, RESTApps and Widgets in Sitevision.

36 lines (35 loc) 938 B
/** * Set query parameters in the url-field. * @param {{ [key: string]: unknown }} params - Values to be set. */ export function setUrlParams(params: { [key: string]: unknown; }): void; /** * Get query parameter from the url-field. * @param {string} key - The key of the parameter to get. */ export function getUrlParam(key: string): any; /** * Get query parameters from the url-field. */ export function getUrlParams(): {}; /** * Clear query parameters in the url-field. */ export function clearUrlParams(): void; /** * Updates query parameters in the url-field. * @param {{ [key: string]: unknown }} params - Values to be updated. */ export function updateUrlParams(params: { [key: string]: unknown; }): void; declare namespace _default { export { getUrlParam }; export { setUrlParams }; export { getUrlParams }; export { clearUrlParams }; export { updateUrlParams }; } export default _default;