UNPKG

@elgato/streamdeck

Version:

The official Node.js SDK for creating Stream Deck plugins.

17 lines (16 loc) 1 kB
import { Version } from "./common/version.js"; /** * Validates the `SDKVersion` within the manifest fulfils the minimum required version for the specified * feature; when the version is not fulfilled, an error is thrown with the feature formatted into the message. * @param minimumVersion Minimum required SDKVersion. * @param feature Feature that requires the version. */ export declare function requiresSDKVersion(minimumVersion: number, feature: string): never | void; /** * Validates the {@link streamDeckVersion} and manifest's `Software.MinimumVersion` are at least the {@link minimumVersion}; * when the version is not fulfilled, an error is thrown with the {@link feature} formatted into the message. * @param minimumVersion Minimum required version. * @param streamDeckVersion Actual application version. * @param feature Feature that requires the version. */ export declare function requiresVersion(minimumVersion: number, streamDeckVersion: Version, feature: string): never | void;