UNPKG

862 BTypeScriptView Raw
1import { Tree, ProjectGraph } from '@nrwl/devkit';
2type CallBack<T> = (currentValue: T, project: string, target: string, configuration?: string) => void;
3/**
4 * Calls a function for each different options that an executor is configured with
5 */
6export declare function forEachExecutorOptions<Options>(tree: Tree,
7/**
8 * Name of the executor to update options for
9 */
10executorName: string,
11/**
12 * Callback that is called for each options configured for a builder
13 */
14callback: CallBack<Options>): void;
15/**
16 * Calls a function for each different options that an executor is configured with via the project graph
17 * this is helpful when you need to get the expaned configuration options from the nx.json
18 **/
19export declare function forEachExecutorOptionsInGraph<Options>(graph: ProjectGraph, executorName: string, callback: CallBack<Options>): void;
20export {};