-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
40 lines (34 loc) · 915 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
declare module 'vanilla-js-url';
/**
* @param {string} [url = window.location.href]
* @param {boolean} [decode = true]
*/
declare function getParams(url?: string, decode?: boolean): {}
/**
* @param {string} [url = window.location.href]
* @param {boolean} [decode = true]
*/
declare function getParamsExtended(url?: string, decode?: boolean): {}
/**
* @param {string} url
* @param {Object} newParams
* @param {boolean} [encode = false]
*/
declare function addParams(url: string, newParams: {}, encode?: boolean): string
/**
* @param {string} url
* @param {Object} newParams
* @param {boolean} [encode = false]
*/
declare function addParamsExtended(url: string, newParams: {}, encode?: boolean): string
/**
* @param {string} [url = window.location.href]
*/
declare function getPath(url): string
export {
getParams,
getParamsExtended,
addParams,
addParamsExtended,
getPath
};