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