@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.
@@ -1,12 +1,8 @@
1
- import { URLParamsFlats, URLParamsValues } from '../serialize/url-params';
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 泛型对象(转换套件),boolean或缺省(是否将undefined会被转成null)
6
+ * @param serializes 转换套件
9
7
  */
10
- export declare function connectURLParams<T extends URLParamsValues>(url: string, params: URLParamsFlats<T>, serializes: T): string;
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;