UNPKG

@nx/devkit

Version:

The Nx Devkit is used to customize Nx for different technologies and use cases. It contains many utility functions for reading and writing files, updating configuration, working with Abstract Syntax Trees(ASTs), and more. Learn more about [extending Nx by

14 lines (11 loc) 1.06 kB
import { CreateNodes, CreateNodesV2, ProjectGraph, Tree } from 'nx/src/devkit-exports'; /** * Iterates through various forms of plugin options to find the one which does not conflict with the current graph */ export declare function addPlugin<PluginOptions>(tree: Tree, graph: ProjectGraph, pluginName: string, createNodesTuple: CreateNodesV2<PluginOptions>, options: Partial<Record<keyof PluginOptions, PluginOptions[keyof PluginOptions][]>>, shouldUpdatePackageJsonScripts: boolean): Promise<void>; /** * @deprecated Use `addPlugin` instead * Iterates through various forms of plugin options to find the one which does not conflict with the current graph */ export declare function addPluginV1<PluginOptions>(tree: Tree, graph: ProjectGraph, pluginName: string, createNodesTuple: CreateNodes<PluginOptions>, options: Partial<Record<keyof PluginOptions, PluginOptions[keyof PluginOptions][]>>, shouldUpdatePackageJsonScripts: boolean): Promise<void>; export declare function generateCombinations<T>(input: Record<string, T[]>): Record<string, T>[];