UNPKG

@ckeditor/ckeditor5-integrations-common

Version:

This package implements common utility modules for integration projects.

18 lines (17 loc) 493 B
import { SemanticVersion } from './isSemanticVersion.js'; /** * Compares two semantic versions. * * - `1` if a > b * - `0` if a == b * - `-1` if a < b * * @param a First semantic version to compare. * @param b Second semantic version to compare. * @returns Comparison result. */ export declare function compareSemanticVersions(a: SemanticVersion, b: SemanticVersion): VersionCompareResult; /** * Result of the versions comparison. */ export type VersionCompareResult = 0 | 1 | -1;