import * as t from 'io-ts' ; export const per_page = t . number ; export type PerPage = t . TypeOf < typeof per_page > ; export const perPageOrUndefined = t . union ( [ per_page , t . undefined ] ) ; export type PerPageOrUndefined = t . TypeOf < typeof perPageOrUndefined > ;