import * as t from 'io-ts' ; import { Either } from 'fp-ts/lib/Either' ; import { updateCommentsArray , UpdateCommentsArray } from '../update_comment' ; /**
 * Types the DefaultCommentsUpdate as:
 *   - If null or undefined, then a default array of type entry will be set
 */ export const DefaultUpdateCommentsArray = new t . Type < UpdateCommentsArray , UpdateCommentsArray , unknown > ( 'DefaultCreateComments' , updateCommentsArray . is , ( input ) : Either < t . Errors , UpdateCommentsArray > => input == null ? t . success ( [ ] ) : updateCommentsArray . decode ( input ) , t . identity ) ;