@vope/utils 1.4.25 → 1.4.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +5505 -188
- package/lib/compare/weak-equal.js +6 -2
- package/lib/index.js +2 -0
- package/lib/memory/basic.js +2 -2
- package/lib/serialize/url-params.js +32 -80
- package/lib/storage/offline.js +232 -0
- package/lib/url/params.js +3 -24
- package/package.json +17 -6
- package/types/compare/weak-equal.d.ts +1 -1
- package/types/index.d.ts +2 -1
- package/types/memory/basic.d.ts +1 -1
- package/types/memory/list.d.ts +1 -1
- package/types/memory/power.d.ts +1 -1
- package/types/memory/simple.d.ts +1 -1
- package/types/serialize/url-params.d.ts +27 -20
- package/types/storage/offline.d.ts +51 -0
- package/types/url/params.d.ts +3 -7
package/types/url/params.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type Param = string | number | boolean | undefined;
|
|
3
|
-
type Params = Param | Param[];
|
|
1
|
+
import { Serializes } from '../serialize/url-params';
|
|
4
2
|
/**
|
|
5
3
|
* url拼接参数
|
|
6
4
|
* @param url
|
|
7
5
|
* @param params 需要让url携带的参数
|
|
8
|
-
* @param serializes
|
|
6
|
+
* @param serializes 转换套件
|
|
9
7
|
*/
|
|
10
|
-
export declare
|
|
11
|
-
export declare function connectURLParams(url: string, params?: Record<string, Params>, serializes?: boolean): string;
|
|
12
|
-
export {};
|
|
8
|
+
export declare const connectURLParams: <T extends object>(url: string, params: T, serializes: Serializes<T>) => string;
|