import * as t from 'io-ts' ; export const total = t . number ; export const totalUndefined = t . union ( [ total , t . undefined ] ) ; export type TotalOrUndefined = t . TypeOf < typeof totalUndefined > ;