UNPKG

@telegram-apps/bridge

Version:

TypeScript package to provide communication layer between Mini App and Telegram application.

11 lines (10 loc) 336 B
import { Version } from '@telegram-apps/types'; /** * @param a - first version. * @param b - second version. * @returns * - `1` if the version "a" is greater than "b". * - `0` the version "a" is equal to "b". * - `-1` the version "a" is lower than "b". */ export declare function compareVersions(a: Version, b: Version): number;