import * as t from 'io-ts' ; import { Either } from 'fp-ts/lib/Either' ; import { actions , Actions } from '../actions' ; export const DefaultActionsArray = new t . Type < Actions , Actions | undefined , unknown > ( 'DefaultActionsArray' , actions . is , ( input , context ) : Either < t . Errors , Actions > => input == null ? t . success ( [ ] ) : actions . validate ( input , context ) , t . identity ) ;