import * as t from 'io-ts' ; export const serializer = t . string ; export type Serializer = t . TypeOf < typeof serializer > ; export const serializerOrUndefined = t . union ( [ serializer , t . undefined ] ) ; export type SerializerOrUndefined = t . TypeOf < typeof serializerOrUndefined > ;