We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f37b32 commit f6c7e43Copy full SHA for f6c7e43
src/internal/utils/values.ts
@@ -76,21 +76,21 @@ export const coerceBoolean = (value: unknown): boolean => {
76
};
77
78
export const maybeCoerceInteger = (value: unknown): number | undefined => {
79
- if (value === undefined) {
+ if (value == null) {
80
return undefined;
81
}
82
return coerceInteger(value);
83
84
85
export const maybeCoerceFloat = (value: unknown): number | undefined => {
86
87
88
89
return coerceFloat(value);
90
91
92
export const maybeCoerceBoolean = (value: unknown): boolean | undefined => {
93
94
95
96
return coerceBoolean(value);
0 commit comments