import * as t from 'io-ts' ; export const cursor = t . string ; export type Cursor = t . TypeOf < typeof cursor > ; export const cursorOrUndefined = t . union ( [ cursor , t . undefined ] ) ; export type CursorOrUndefined = t . TypeOf < typeof cursorOrUndefined > ;