import * as t from 'io-ts' ; export const sort_order = t . keyof ( { asc : null , desc : null } ) ; export const sortOrderOrUndefined = t . union ( [ sort_order , t . undefined ] ) ; export type SortOrderOrUndefined = t . TypeOf < typeof sortOrderOrUndefined > ;