@pawover/kit 0.0.0-alpha.33 → 0.0.0-alpha.34

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.d.ts CHANGED
@@ -2301,14 +2301,23 @@ declare function isIterable(value: unknown): value is {
2301
2301
  declare function isMap(value: unknown): value is Map<unknown, unknown>;
2302
2302
  declare function isWeakMap(value: unknown): value is WeakMap<AnyObject, unknown>;
2303
2303
  //#endregion
2304
- //#region src/utils/typeof/isNaN.d.ts
2305
- declare function isNaN(value: unknown): value is number;
2306
- //#endregion
2307
2304
  //#region src/utils/typeof/isNull.d.ts
2308
2305
  declare function isNull(value: unknown): value is null;
2309
2306
  //#endregion
2310
2307
  //#region src/utils/typeof/isNumber.d.ts
2311
- declare function isNumber(value: unknown): value is number;
2308
+ /**
2309
+ * 检查 value 是否为 number 类型
2310
+ *
2311
+ * @param value - 待检查值
2312
+ * @param checkNaN - 是否排除 `NaN`,默认为 `true`
2313
+ */
2314
+ declare function isNumber(value: unknown, checkNaN?: boolean): value is number;
2315
+ /**
2316
+ * 检查 value 是否为 NaN
2317
+ *
2318
+ * @param value - 待检查值
2319
+ */
2320
+ declare function isNaN(value: unknown): value is number;
2312
2321
  /**
2313
2322
  * 检查 value 是否为整数
2314
2323
  *
@@ -2318,7 +2327,7 @@ declare function isNumber(value: unknown): value is number;
2318
2327
  declare function isInteger(value: unknown, safeCheck?: boolean): value is number;
2319
2328
  /**
2320
2329
  * 检查 value 是否为正整数
2321
- * - 未考虑 value 为 0 的情况
2330
+ * - 此函数中 `0` 不被视为正整数
2322
2331
  *
2323
2332
  * @param value - 待检查值
2324
2333
  * @param safeCheck - 是否附加安全数检查
@@ -2326,13 +2335,25 @@ declare function isInteger(value: unknown, safeCheck?: boolean): value is number
2326
2335
  declare function isPositiveInteger(value: unknown, safeCheck?: boolean): value is number;
2327
2336
  /**
2328
2337
  * 检查 value 是否为负整数
2329
- * - 未考虑 value 为 0 的情况
2338
+ * - 此函数中 `0` 不被视为负整数
2330
2339
  *
2331
2340
  * @param value - 待检查值
2332
2341
  * @param safeCheck - 是否附加安全数检查
2333
2342
  */
2334
2343
  declare function isNegativeInteger(value: unknown, safeCheck?: boolean): value is number;
2344
+ /**
2345
+ * 检查 value 是否为 Infinity
2346
+ * - 排除 `NaN`
2347
+ *
2348
+ * @param value - 待检查值
2349
+ */
2335
2350
  declare function isInfinity(value: unknown): value is number;
2351
+ /**
2352
+ * 检查 value 是否类似 Infinity
2353
+ * - 排除 `NaN`
2354
+ *
2355
+ * @param value - 待检查值
2356
+ */
2336
2357
  declare function isInfinityLike(value: unknown): boolean;
2337
2358
  //#endregion
2338
2359
  //#region src/utils/typeof/isObject.d.ts