UNPKG

1.04 kBTypeScriptView Raw
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.io/license
7 */
8import { json, logging } from '@angular-devkit/core';
9import { Observable } from 'rxjs';
10import { BuilderRun, Target } from './api';
11import { ArchitectHost } from './internal';
12import { JobName, Registry } from './jobs';
13export interface ScheduleOptions {
14 logger?: logging.Logger;
15}
16export declare class Architect {
17 private _host;
18 private readonly _scheduler;
19 private readonly _jobCache;
20 private readonly _infoCache;
21 constructor(_host: ArchitectHost, registry?: json.schema.SchemaRegistry, additionalJobRegistry?: Registry);
22 has(name: JobName): Observable<boolean>;
23 scheduleBuilder(name: string, options: json.JsonObject, scheduleOptions?: ScheduleOptions): Promise<BuilderRun>;
24 scheduleTarget(target: Target, overrides?: json.JsonObject, scheduleOptions?: ScheduleOptions): Promise<BuilderRun>;
25}