defineArdoConfig
On this page
Contextually type configuration literals, including nested options.
import { defineArdoConfig } from "ardo/config"
defineArdoConfig(config: ArdoPluginOptions): ArdoPluginOptions
defineArdoConfig(config: Promise<ArdoPluginOptions>): Promise<ArdoPluginOptions>
defineArdoConfig(config: (environment: ConfigEnv) => ArdoPluginOptions | Promise<ArdoPluginOptions>): (environment: ConfigEnv) => ArdoPluginOptions | Promise<ArdoPluginOptions>
defineArdoConfig(config: ArdoProjectConfigExport): ArdoProjectConfigExport
Overload
defineArdoConfig(config: ArdoPluginOptions): ArdoPluginOptions
Parameters
| Name | Type | Required |
|---|---|---|
config | ArdoPluginOptions | Yes |
Returns
ArdoPluginOptions
Overload
defineArdoConfig(config: Promise<ArdoPluginOptions>): Promise<ArdoPluginOptions>
Parameters
| Name | Type | Required |
|---|---|---|
config | Promise<ArdoPluginOptions> | Yes |
Returns
Promise<ArdoPluginOptions>
Overload
defineArdoConfig(config: (environment: ConfigEnv) => ArdoPluginOptions | Promise<ArdoPluginOptions>): (environment: ConfigEnv) => ArdoPluginOptions | Promise<ArdoPluginOptions>
Parameters
| Name | Type | Required |
|---|---|---|
config | (environment: ConfigEnv) => ArdoPluginOptions | Promise<ArdoPluginOptions> | Yes |
Returns
(environment: ConfigEnv) => ArdoPluginOptions | Promise<ArdoPluginOptions>
Overload
defineArdoConfig(config: ArdoProjectConfigExport): ArdoProjectConfigExport
Parameters
| Name | Type | Required |
|---|---|---|
config | ArdoProjectConfigExport | Yes |