or<B, InputB = unknown>(b: Schema<B, InputB>): Object
b: Schema<B, InputB>
union
import * as x from 'unhoax'const orString = x.or(x.string)const schema = orString(x.number) // Schema<number | string>// or, using pipeimport pipe from 'just-pipe'const schema = pipe(x.number, x.or(x.string)) Copy
import * as x from 'unhoax'const orString = x.or(x.string)const schema = orString(x.number) // Schema<number | string>// or, using pipeimport pipe from 'just-pipe'const schema = pipe(x.number, x.or(x.string))
See
union
Example