import * as t from 'io-ts' ; import { DefaultArray } from '@kbn/securitysolution-io-ts-types' ; export const osType = t . keyof ( { linux : null , macos : null , windows : null , } ) ; export type OsType = t . TypeOf < typeof osType > ; export const osTypeArray = DefaultArray ( osType ) ; export type OsTypeArray = t . TypeOf < typeof osTypeArray > ; export const osTypeArrayOrUndefined = t . union ( [ osTypeArray , t . undefined ] ) ; export type OsTypeArrayOrUndefined = t . OutputOf < typeof osTypeArray > ;