import * as t from 'io-ts' ; import { NonEmptyString } from '@kbn/securitysolution-io-ts-types' ; import { exceptionListType } from '../exception_list' ; import { namespaceType } from '../default_namespace' ; export const list = t . exact ( t . type ( { id : NonEmptyString , list_id : NonEmptyString , type : exceptionListType , namespace_type : namespaceType , } ) ) ; export type List = t . TypeOf < typeof list > ; export const listArray = t . array ( list ) ; export type ListArray = t . TypeOf < typeof listArray > ; export const listArrayOrUndefined = t . union ( [ listArray , t . undefined ] ) ; export type ListArrayOrUndefined = t . TypeOf < typeof listArrayOrUndefined > ;