@equinor/fusion-framework-cli
Version:
Command-line toolkit for developing, building, and publishing Fusion Framework applications and portal templates. Provides a unified developer experience from local development to production deployment.
23 lines • 809 B
JavaScript
/**
* Utility to define a portal configuration function for the framework.
*
* @param fn - A function that returns the portal configuration object (either synchronously or asynchronously).
* @returns The provided configuration function, unchanged.
*
* @remarks
* This utility is used to provide type safety and tooling support for portal configuration authoring.
* It is a no-op at runtime, but helps with code completion and documentation for consumers.
*
* @example
* ```ts
* import { definePortalConfig } from 'fusion-framework';
*
* export default definePortalConfig((env, { base }) => ({
* ...base,
* environment: { name: env.environment },
* features: { enableBeta: true },
* }));
* ```
*/
export const definePortalConfig = (fn) => fn;
//# sourceMappingURL=portal-config.js.map