diff --git a/src/content/docs/en/reference/integrations-reference.mdx b/src/content/docs/en/reference/integrations-reference.mdx index 226f73cbf1e33..0cabd7dcc4ecc 100644 --- a/src/content/docs/en/reference/integrations-reference.mdx +++ b/src/content/docs/en/reference/integrations-reference.mdx @@ -26,7 +26,7 @@ interface AstroIntegration { config: AstroConfig; command: 'dev' | 'build'; isRestart: boolean; - updateConfig: (newConfig: Record) => void; + updateConfig: (newConfig: DeepPartial) => AstroConfig; addRenderer: (renderer: AstroRenderer) => void; addWatchFile: (path: URL | string) => void; addClientDirective: (directive: ClientDirectiveConfig) => void; @@ -72,7 +72,7 @@ interface AstroIntegration { config: AstroConfig; command: 'dev' | 'build'; isRestart: boolean; - updateConfig: (newConfig: Record) => void; + updateConfig: (newConfig: DeepPartial) => AstroConfig; addRenderer: (renderer: AstroRenderer) => void; addClientDirective: (directive: ClientDirectiveConfig) => void; addDevOverlayPlugin: (pluginEntrypoint: string) => void; @@ -104,7 +104,7 @@ A read-only copy of the user-supplied [Astro config](/en/reference/configuration #### `updateConfig` option -**Type:** `(newConfig: Record) => void;` +**Type:** `(newConfig: DeepPartial) => AstroConfig;` A callback function to update the user-supplied [Astro config](/en/reference/configuration-reference/). Any config you provide **will be merged with the user config + other integration config updates,** so you are free to omit keys!