UNPKG

@wocker/ws

Version:

Docker workspace for web projects

25 lines (24 loc) 672 B
import { Version } from "./Version"; type VersionRuleData = { prefix?: string; major?: number; minor?: number; patch?: number; tag?: string; build?: number; }; export declare class VersionRule { static readonly REGEXP: RegExp; protected static map: Map<string, VersionRule>; readonly prefix?: string; readonly major?: number; readonly minor?: number; readonly patch?: number; readonly tag?: string; readonly build?: number; constructor(data: VersionRuleData); get version(): Version; match(version: string | Version, withTag?: boolean): boolean; static parse(rule: string): VersionRule; } export {};