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 @@ -1100,21 +1100,21 @@ export const coerceBoolean = (value: unknown): boolean => {
11001100} ;
11011101
11021102export const maybeCoerceInteger = ( value : unknown ) : number | undefined => {
1103- if ( value === undefined ) {
1103+ if ( value == null ) {
11041104 return undefined ;
11051105 }
11061106 return coerceInteger ( value ) ;
11071107} ;
11081108
11091109export const maybeCoerceFloat = ( value : unknown ) : number | undefined => {
1110- if ( value === undefined ) {
1110+ if ( value == null ) {
11111111 return undefined ;
11121112 }
11131113 return coerceFloat ( value ) ;
11141114} ;
11151115
11161116export const maybeCoerceBoolean = ( value : unknown ) : boolean | undefined => {
1117- if ( value === undefined ) {
1117+ if ( value == null ) {
11181118 return undefined ;
11191119 }
11201120 return coerceBoolean ( value ) ;
You can’t perform that action at this time.
0 commit comments