import * as t from 'io-ts' ; import { NonEmptyString } from '@kbn/securitysolution-io-ts-types' ; export const createComment = t . exact ( t . type ( { comment : NonEmptyString , } ) ) ; export type CreateComment = t . TypeOf < typeof createComment > ; export const createCommentsArray = t . array ( createComment ) ; export type CreateCommentsArray = t . TypeOf < typeof createCommentsArray > ; export type CreateComments = t . TypeOf < typeof createComment > ; export const createCommentsArrayOrUndefined = t . union ( [ createCommentsArray , t . undefined ] ) ; export type CreateCommentsArrayOrUndefined = t . TypeOf < typeof createCommentsArrayOrUndefined > ;