File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1088,21 +1088,21 @@ export const coerceBoolean = (value: unknown): boolean => {
10881088} ;
10891089
10901090export const maybeCoerceInteger = ( value : unknown ) : number | undefined => {
1091- if ( value === undefined ) {
1091+ if ( value == null ) {
10921092 return undefined ;
10931093 }
10941094 return coerceInteger ( value ) ;
10951095} ;
10961096
10971097export const maybeCoerceFloat = ( value : unknown ) : number | undefined => {
1098- if ( value === undefined ) {
1098+ if ( value == null ) {
10991099 return undefined ;
11001100 }
11011101 return coerceFloat ( value ) ;
11021102} ;
11031103
11041104export const maybeCoerceBoolean = ( value : unknown ) : boolean | undefined => {
1105- if ( value === undefined ) {
1105+ if ( value == null ) {
11061106 return undefined ;
11071107 }
11081108 return coerceBoolean ( value ) ;
You can’t perform that action at this time.
0 commit comments