UNPKG

@equinor/fusion-framework-cli

Version:

[![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](./LICENSE)

23 lines 809 B
/** * 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