Typescript apparently does not let you make this mistake, but when using Javascript you can. An example fix: modify `mergeProps` to convert string values to numeric values if the default value is numeric; or throw an error if the prop value's type is incorrect.