UNPKG

1.22 kBTypeScriptView Raw
1export interface ISemVerDSL {
2 gte(version: string, callback: Function): ISemVerContextBoundDSL;
3 lte(version: string, callback: Function): ISemVerContextBoundDSL;
4 gt(version: string, callback: Function): ISemVerContextBoundDSL;
5 lt(version: string, callback: Function): ISemVerContextBoundDSL;
6 eq(version: string, callback: Function): ISemVerContextBoundDSL;
7 neq(version: string, callback: Function): ISemVerContextBoundDSL;
8 between(v1: string, v2: string, callback: Function): ISemVerContextBoundDSL;
9}
10export interface ISemVerContextBoundDSL {
11 elseIf: ISemVerDSL;
12 else(callback: Function): void;
13}
14export declare const SemVerDSL: (target: string, lastPredicate?: () => boolean) => {
15 gte(version: string, callback: Function): ISemVerContextBoundDSL;
16 lte(version: string, callback: Function): ISemVerContextBoundDSL;
17 gt(version: string, callback: Function): ISemVerContextBoundDSL;
18 lt(version: string, callback: Function): ISemVerContextBoundDSL;
19 eq(version: string, callback: Function): ISemVerContextBoundDSL;
20 neq(version: string, callback: Function): ISemVerContextBoundDSL;
21 between(v1: string, v2: string, callback: Function): ISemVerContextBoundDSL;
22};