job-registry.d.ts 1011 B

1234567891011121314151617181920
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.dev/license
  7. */
  8. import { JsonValue } from '@angular-devkit/core';
  9. import { Observable } from 'rxjs';
  10. import { jobs } from '../../src';
  11. export declare class NodeModuleJobRegistry<MinimumArgumentValueT extends JsonValue = JsonValue, MinimumInputValueT extends JsonValue = JsonValue, MinimumOutputValueT extends JsonValue = JsonValue> implements jobs.Registry<MinimumArgumentValueT, MinimumInputValueT, MinimumOutputValueT> {
  12. protected _resolve(name: string): string | null;
  13. /**
  14. * Get a job description for a named job.
  15. *
  16. * @param name The name of the job.
  17. * @returns A description, or null if the job is not registered.
  18. */
  19. get<A extends MinimumArgumentValueT, I extends MinimumInputValueT, O extends MinimumOutputValueT>(name: jobs.JobName): Observable<jobs.JobHandler<A, I, O> | null>;
  20. }