1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { JsonValue } from '@angular-devkit/core';
|
9 | import { Observable } from 'rxjs';
|
10 | import { JobDescription, JobHandler, JobName, Registry } from './api';
|
11 |
|
12 |
|
13 |
|
14 | export interface RegisterJobOptions extends Partial<JobDescription> {
|
15 | }
|
16 |
|
17 |
|
18 |
|
19 | export declare class SimpleJobRegistry<MinimumArgumentValueT extends JsonValue = JsonValue, MinimumInputValueT extends JsonValue = JsonValue, MinimumOutputValueT extends JsonValue = JsonValue> implements Registry<MinimumArgumentValueT, MinimumInputValueT, MinimumOutputValueT> {
|
20 | private _jobNames;
|
21 | get<A extends MinimumArgumentValueT = MinimumArgumentValueT, I extends MinimumInputValueT = MinimumInputValueT, O extends MinimumOutputValueT = MinimumOutputValueT>(name: JobName): Observable<JobHandler<A, I, O> | null>;
|
22 | |
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | register<A extends MinimumArgumentValueT, I extends MinimumInputValueT, O extends MinimumOutputValueT>(name: JobName, handler: JobHandler<A, I, O>, options?: RegisterJobOptions): void;
|
30 | |
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | register<ArgumentT extends JsonValue, InputT extends JsonValue, OutputT extends JsonValue>(handler: JobHandler<ArgumentT, InputT, OutputT>, options?: RegisterJobOptions & {
|
37 | name: string;
|
38 | }): void;
|
39 | protected _register<ArgumentT extends JsonValue, InputT extends JsonValue, OutputT extends JsonValue>(name: JobName, handler: JobHandler<ArgumentT, InputT, OutputT>, options: RegisterJobOptions): void;
|
40 | |
41 |
|
42 |
|
43 | getJobNames(): JobName[];
|
44 | }
|