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