diff --git a/packages/pages/docs/api/pages.templateconfig.additionalproperties.md b/packages/pages/docs/api/pages.templateconfig.additionalproperties.md index 283599a69..0e28bc44a 100644 --- a/packages/pages/docs/api/pages.templateconfig.additionalproperties.md +++ b/packages/pages/docs/api/pages.templateconfig.additionalproperties.md @@ -9,5 +9,5 @@ The field to pass additional metadata **Signature:** ```typescript -additionalProperties?: string; +additionalProperties?: Record; ``` diff --git a/packages/pages/docs/api/pages.templateconfig.md b/packages/pages/docs/api/pages.templateconfig.md index 9abf76e73..bdaad4a97 100644 --- a/packages/pages/docs/api/pages.templateconfig.md +++ b/packages/pages/docs/api/pages.templateconfig.md @@ -16,7 +16,7 @@ export interface TemplateConfig | Property | Modifiers | Type | Description | | ----------------------------------------------------------------------------- | --------- | --------------------------- | ------------------------------------------------------------------------------------------------------------ | -| [additionalProperties?](./pages.templateconfig.additionalproperties.md) | | string | _(Optional)_ The field to pass additional metadata | +| [additionalProperties?](./pages.templateconfig.additionalproperties.md) | | Record<string, any> | _(Optional)_ The field to pass additional metadata | | [alternateLanguageFields?](./pages.templateconfig.alternatelanguagefields.md) | | string\[\] | _(Optional)_ The specific fields to add additional language options to based on the stream's localization | | [hydrate?](./pages.templateconfig.hydrate.md) | | boolean | _(Optional)_ Determines if hydration is allowed or not for webpages | | [name?](./pages.templateconfig.name.md) | | string | _(Optional)_ The name of the template feature. If not defined uses the template filename (without extension) | diff --git a/packages/pages/etc/pages.api.md b/packages/pages/etc/pages.api.md index 65bb19fb6..505d34b0c 100644 --- a/packages/pages/etc/pages.api.md +++ b/packages/pages/etc/pages.api.md @@ -329,7 +329,7 @@ export type Template = ( // @public export interface TemplateConfig { - additionalProperties?: string; + additionalProperties?: Record; alternateLanguageFields?: string[]; hydrate?: boolean; name?: string; diff --git a/packages/pages/src/common/src/feature/features.ts b/packages/pages/src/common/src/feature/features.ts index 9d3194ec2..eaca52afa 100644 --- a/packages/pages/src/common/src/feature/features.ts +++ b/packages/pages/src/common/src/feature/features.ts @@ -34,7 +34,7 @@ interface FeatureConfigBase { /** @deprecated field will be unsupported in the future */ alternateLanguageFields?: string[]; onUrlChange?: PluginFunctionSelector; - additionalProperties?: string; + additionalProperties?: Record; } interface EntityPageSetConfig extends FeatureConfigBase { diff --git a/packages/pages/src/common/src/template/internal/types.ts b/packages/pages/src/common/src/template/internal/types.ts index 7de2960b7..05b7ab1f1 100644 --- a/packages/pages/src/common/src/template/internal/types.ts +++ b/packages/pages/src/common/src/template/internal/types.ts @@ -76,7 +76,7 @@ export interface TemplateConfigInternal { /** The field to use as the slug for dynamic dev mode */ slugField?: string; /** The field to pass additional metadata */ - additionalProperties?: string; + additionalProperties?: Record; /** The type of template */ templateType: "entity" | "static"; } diff --git a/packages/pages/src/common/src/template/types.ts b/packages/pages/src/common/src/template/types.ts index e369250cc..9685030b6 100644 --- a/packages/pages/src/common/src/template/types.ts +++ b/packages/pages/src/common/src/template/types.ts @@ -118,7 +118,7 @@ export interface TemplateConfig { /** The field to use as the slug for dynamic dev mode */ slugField?: string; /** The field to pass additional metadata */ - additionalProperties?: string; + additionalProperties?: Record; } /**