1 | import { Project } from "@atomist/automation-client/lib/project/Project";
|
2 | import { StatefulPushListenerInvocation } from "../dsl/goalContribution";
|
3 | import { PredicateMapping } from "./PredicateMapping";
|
4 |
|
5 |
|
6 |
|
7 | export interface PushTest extends PredicateMapping<StatefulPushListenerInvocation> {
|
8 | }
|
9 |
|
10 |
|
11 |
|
12 | export declare type ProjectPredicate = (p: Project) => Promise<boolean>;
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare function pushTest(name: string, mapping: (p: StatefulPushListenerInvocation) => Promise<boolean>): PushTest;
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | export interface PredicatePushTest extends PushTest {
|
25 | predicate: ProjectPredicate;
|
26 | }
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | export declare function predicatePushTest(name: string, predicate: ProjectPredicate): PredicatePushTest;
|
35 |
|
\ | No newline at end of file |