import * as t from 'io-ts' ; export const name = t . string ; export type Name = t . TypeOf < typeof name > ; export const nameOrUndefined = t . union ( [ name , t . undefined ] ) ; export type NameOrUndefined = t . TypeOf < typeof nameOrUndefined > ;