import * as t from 'io-ts' ; export const immutable = t . boolean ; export type Immutable = t . TypeOf < typeof immutable > ; export const immutableOrUndefined = t . union ( [ immutable , t . undefined ] ) ; export type ImmutableOrUndefined = t . TypeOf < typeof immutableOrUndefined > ;