@polyv/utils 2.0.0-beta.4 → 2.0.0-beta.5
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/cjs/boolean.d.ts +1 -1
- package/dist/es/boolean.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/boolean.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare function ynToBool(value: YOrN): boolean;
|
|
|
24
24
|
* @param defaultValue 当 value 为非法值时的默认值。
|
|
25
25
|
* @return 布尔值。
|
|
26
26
|
*/
|
|
27
|
-
export declare function ynToBool(value: unknown, defaultValue
|
|
27
|
+
export declare function ynToBool(value: unknown, defaultValue: YOrN): boolean;
|
|
28
28
|
/**
|
|
29
29
|
* 检查指定数组元素的值是否都为 Y。
|
|
30
30
|
* @param values 指定数组。
|
package/dist/es/boolean.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare function ynToBool(value: YOrN): boolean;
|
|
|
24
24
|
* @param defaultValue 当 value 为非法值时的默认值。
|
|
25
25
|
* @return 布尔值。
|
|
26
26
|
*/
|
|
27
|
-
export declare function ynToBool(value: unknown, defaultValue
|
|
27
|
+
export declare function ynToBool(value: unknown, defaultValue: YOrN): boolean;
|
|
28
28
|
/**
|
|
29
29
|
* 检查指定数组元素的值是否都为 Y。
|
|
30
30
|
* @param values 指定数组。
|