@reflexions/string-to-boolean 1.1.0 → 1.1.1
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,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Converts a string to a boolean, treating '0', 'false', 'FALSE', 'off' and falsy values like '' to false, the rest to true.
|
|
3
3
|
*/
|
|
4
|
-
declare const stringToBoolean: (value: string | boolean | number | null | undefined) =>
|
|
4
|
+
declare const stringToBoolean: (value: string | boolean | number | null | undefined) => boolean;
|
|
5
5
|
export default stringToBoolean;
|
|
6
6
|
//# sourceMappingURL=StringToBoolean.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Converts a string to a boolean, treating '0', 'false', 'FALSE', 'off' and falsy values like '' to false, the rest to true.
|
|
3
3
|
*/
|
|
4
|
-
declare const stringToBoolean: (value: string | boolean | number | null | undefined) =>
|
|
4
|
+
declare const stringToBoolean: (value: string | boolean | number | null | undefined) => boolean;
|
|
5
5
|
export default stringToBoolean;
|
|
6
6
|
//# sourceMappingURL=StringToBoolean.d.ts.map
|