UNPKG

balena-sdk

Version:
20 lines (19 loc) 775 B
import type { Device } from '..'; export declare const getDeviceOsSemverWithVariant: ({ os_version, os_variant, }: Pick<Device["Read"], "os_version" | "os_variant">) => string | null; /** * @summary Ensure version compatibility using balena-semver * @name ensureVersionCompatibility * @private * @function * * @param {String} version - version under check * @param {String} minVersion - minimum accepted version * @throws {Error} Will reject if the given version is < than the given minimum version * @returns {void} * * @example * ensureVersionCompatibility(version, MIN_VERSION) * console.log('Is compatible'); * */ export declare const ensureVersionCompatibility: (version: string | null, minVersion: string, versionType: "supervisor" | "host OS") => void;