1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | export interface ActionResult<T = undefined> {
|
7 | |
8 |
|
9 |
|
10 | readonly target: T;
|
11 | |
12 |
|
13 |
|
14 | readonly success: boolean;
|
15 | readonly error?: Error;
|
16 | readonly errorStep?: string;
|
17 | }
|
18 | export declare function isActionResult(a: any): a is ActionResult;
|
19 |
|
20 |
|
21 |
|
22 | export declare class SimpleActionResult<T> implements ActionResult<T> {
|
23 | readonly target: T;
|
24 | readonly success: boolean;
|
25 | constructor(target: T, success: boolean);
|
26 | }
|
27 | export declare function successOn<T>(t: T): ActionResult<T>;
|
28 | export declare function failureOn<T>(t: T, err: Error, f?: any): ActionResult<T>;
|
29 | //# sourceMappingURL=ActionResult.d.ts.map |
\ | No newline at end of file |