Closed borracciaBlu closed 1 year ago
Hi @medikoo ,
I've just realised that the types were not covering the isOptional
case...
isOptional - Makes null or undefined accepted as valid value. In such case instead of TypeError being thrown, null is returned.
default - A value to be returned if null or undefined is passed as an input value.
I've assumed that default will be forced of the same type of the ensure function. Let me know.
Codecov Report
:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more