import * as t from 'io-ts' ; import { NonEmptyString } from '@kbn/securitysolution-io-ts-types' ; export const item_id = NonEmptyString ; export type ItemId = t . TypeOf < typeof item_id > ; export const itemIdOrUndefined = t . union ( [ item_id , t . undefined ] ) ; export type ItemIdOrUndefined = t . TypeOf < typeof itemIdOrUndefined > ;