UNPKG

@dfinity/utils

Version:

A collection of utilities and constants for NNS/SNS projects.

14 lines (13 loc) 485 B
/** * Returns true if the current version is smaller than the minVersion, false if equal or bigger. * Tags after patch version are ignored, e.g. 1.0.0-beta.1 is considered equal to 1.0.0. * * @param {Object} params * @param {string} params.minVersion Ex: "1.0.0" * @param {string} params.currentVersion Ex: "2.0.0" * @returns boolean */ export declare const smallerVersion: ({ minVersion, currentVersion, }: { minVersion: string; currentVersion: string; }) => boolean;