0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Fix typing of integrations array in user config (#2907)

* Fix type of `integrations` in config

As per [docs](https://docs.astro.build/en/reference/integrations-reference/#combining-plugins), an integration can return an array of `AstroIntegration` objects to support bundling a collection of integrations as a preset. This change reflects that usages in the typing for the user config object.

* Add changeset
This commit is contained in:
Chris Swithinbank 2022-03-29 00:07:07 +02:00 committed by GitHub
parent 9b7e419989
commit 22b1432e3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix typing of `integrations` array in user config

View file

@ -161,7 +161,7 @@ export interface AstroUserConfig {
* } * }
* ``` * ```
*/ */
integrations?: AstroIntegration[]; integrations?: Array<AstroIntegration | AstroIntegration[]>;
/** /**
* @docs * @docs