import * as t from 'io-ts' ; import { Either } from 'fp-ts/lib/Either' ; /**
 * Types the DefaultBooleanFalse as:
 *   - If null or undefined, then a default false will be set
 */ export const DefaultBooleanFalse = new t . Type < boolean , boolean | undefined , unknown > ( 'DefaultBooleanFalse' , t . boolean . is , ( input , context ) : Either < t . Errors , boolean > => input == null ? t . success ( false ) : t . boolean . validate ( input , context ) , t . identity ) ;