import * as t from 'io-ts' ; import { RequiredKeepUndefined } from '../../common/required_keep_undefined' ; import { _version } from '../../common/underscore_version' ; import { id } from '../../common/id' ; import { value } from '../../common/value' ; import { meta } from '../../common/meta' ; export const updateListItemSchema = t . intersection ( [ t . exact ( t . type ( { id , value , } ) ) , t . exact ( t . partial ( { _version , meta , } ) ) , ] ) ; export type UpdateListItemSchema = t . OutputOf < typeof updateListItemSchema > ; export type UpdateListItemSchemaDecoded = RequiredKeepUndefined < t . TypeOf < typeof updateListItemSchema > > ;