const booleanJson = type.boolean.json
console.log(booleanJson)
// => [ { unit: false }, { unit: true } ]
// what I'm after is an API that let's me do this:
type([ { unit: false }, { unit: true }])
// or more directly:
type(type.boolean.json)
const booleanJson = type.boolean.json
console.log(booleanJson)
// => [ { unit: false }, { unit: true } ]
// what I'm after is an API that let's me do this:
type([ { unit: false }, { unit: true }])
// or more directly:
type(type.boolean.json)