UNPKG

@typed/io

Version:

Runtime IO type system

9 lines 373 B
import * as G from '../guard'; import { Any, Type } from './Type'; export const maybe = (justType, name = `Maybe<${justType.name}>`, expected = `Maybe<${justType.expected}>`) => { const type = Type.fromGuard(G.maybe(justType), name, expected); return { ...type, justType }; }; const _Maybe = maybe(Any); export { _Maybe as Maybe }; //# sourceMappingURL=Maybe.js.map