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