UNPKG

@nx/angular-rsbuild

Version:

Rsbuild Plugin for building Angular.

19 lines 864 B
import type { ProxyConfig } from '@rsbuild/core'; export declare function getProxyConfig(root: string, proxyConfig: string | undefined): Promise<ProxyConfig | undefined>; export declare function getJsonErrorLineColumn(offset: number, content: string): { line: number; column: number; }; /** * Normalizes the proxy configuration to ensure a consistent format. * If the input is an array, it is returned as-is. * If the input is an object, it is transformed into an array of objects. */ export declare function normalizeProxyConfiguration(proxy: Record<string, object> | object[]): ProxyConfig; /** * Asserts that the value is an Error instance or an object with name and message properties. */ export declare function assertIsError(value: unknown): asserts value is Error & { code?: string; }; //# sourceMappingURL=dev-server-config-utils.d.ts.map