import * as t from 'io-ts' ; import { PositiveIntegerGreaterThanZero } from '../positive_integer_greater_than_zero' ; /**
 * Note this is just a positive number, but we use it as a type here which is still ok.
 * This type was originally from "x-pack/plugins/security_solution/common/detection_engine/schemas/common/schemas.ts"
 * but is moved here to make things more portable. No unit tests, but see PositiveIntegerGreaterThanZero integer for unit tests.
 */ export const version = PositiveIntegerGreaterThanZero ; export type Version = t . TypeOf < typeof version > ; export const versionOrUndefined = t . union ( [ version , t . undefined ] ) ; export type VersionOrUndefined = t . TypeOf < typeof versionOrUndefined > ;