Closed raine closed 9 years ago
couldn't pass false as value for [Boolean]
false
[Boolean]
> var Type = require('union-type') > Type({ Exists: [Boolean] }).Exists(true) [ true, of: { Exists: [Function], case: [Function], caseOn: [Function] }, name: 'Exists' ] > Type({ Exists: [Boolean] }).Exists(false) TypeError: wrong value false passed to location 0 in Exists
That is an accidental omission! Thanks you for catching it.
couldn't pass
false
as value for[Boolean]