@ts-for-gir/lib
Version:
Typescript .d.ts generator from GIR for gjs
11 lines (10 loc) • 498 B
TypeScript
import type { GirConstantElement } from './types/index.js';
export declare class LibraryVersion {
major: number | undefined;
minor: number | undefined;
patch: number | undefined;
constructor(constants?: GirConstantElement[], version?: string);
toString(): string;
/** Compare two library versions and return -1 if this version is greater than the other, 1 if this version is less than the other, and 0 if they are equal. */
compare(other: LibraryVersion): 1 | 0 | -1;
}