import * as t from 'io-ts' ; export const filter = t . string ; export type Filter = t . TypeOf < typeof filter > ; export const filterOrUndefined = t . union ( [ filter , t . undefined ] ) ; export type FilterOrUndefined = t . TypeOf < typeof filterOrUndefined > ;