@dazhicheng/utils 1.3.30 → 1.3.32
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/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/is.d.ts +10 -0
- package/package.json +1 -1
package/dist/is.d.ts
CHANGED
|
@@ -235,3 +235,13 @@ export declare function isExternal(path: string): boolean;
|
|
|
235
235
|
*/
|
|
236
236
|
export declare function isJson(value: string | null): boolean;
|
|
237
237
|
export declare function isDayjsObject(value: any): value is dayjs.Dayjs;
|
|
238
|
+
/**
|
|
239
|
+
* 判断值是否是formData对象
|
|
240
|
+
*
|
|
241
|
+
* 此函数用于检查传入的值是否为 formData
|
|
242
|
+
* 它提供了一种类型安全的方式来忽略未知的类型,并确保我们在处理可能不存在的值时能够安全地进行
|
|
243
|
+
*
|
|
244
|
+
* @param val 可能为 undefined 或具体类型的值
|
|
245
|
+
* @returns 如果值为 undefined 则返回 true;否则返回 false
|
|
246
|
+
*/
|
|
247
|
+
export declare function isFormData(val?: any): val is undefined;
|