UNPKG

@nx-dotnet/utils

Version:

This library was generated with [Nx](https://nx.dev).

13 lines (12 loc) 1.02 kB
import { Tree } from '@nx/devkit'; import { NxDotnetConfig, NxDotnetConfigV1, NxDotnetConfigV2, ResolvedConfig } from '../models'; export declare const DefaultConfigValues: ResolvedConfig; export declare function readConfig(host?: Tree): ResolvedConfig; export declare function updateConfig(host: Tree, value: NxDotnetConfigV2): void; export declare function updateConfigInNxJson(host: Tree, value: NxDotnetConfigV2): void; export declare function readConfigSection<T extends keyof NxDotnetConfigV2>(host: Tree, section: T): Partial<NxDotnetConfigV2>[T]; export declare function readConfigFromRCFile(host?: Tree): NxDotnetConfig | null; export declare function readConfigFromNxJson(host?: Tree): NxDotnetConfig | null; export declare function deepMerge<T extends object>(base: T, ...objects: (Partial<T> | null)[]): T; export declare function isNxDotnetConfigV1(config: Partial<NxDotnetConfig | null>): config is NxDotnetConfigV1; export declare function upgradeConfigToV2(config: NxDotnetConfigV1): NxDotnetConfigV2;