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:
parent
9b7e419989
commit
22b1432e3e
2 changed files with 6 additions and 1 deletions
5
.changeset/real-starfishes-turn.md
Normal file
5
.changeset/real-starfishes-turn.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix typing of `integrations` array in user config
|
|
@ -161,7 +161,7 @@ export interface AstroUserConfig {
|
|||
* }
|
||||
* ```
|
||||
*/
|
||||
integrations?: AstroIntegration[];
|
||||
integrations?: Array<AstroIntegration | AstroIntegration[]>;
|
||||
|
||||
/**
|
||||
* @docs
|
||||
|
|
Loading…
Reference in a new issue