fix (core): allow falsy values in astro config integrations arrays (#4427)
* allow falsy values in astro config integrations arrays * add changeset
This commit is contained in:
parent
a2414bf59e
commit
b2e976f39c
2 changed files with 8 additions and 1 deletions
5
.changeset/eleven-shoes-lie.md
Normal file
5
.changeset/eleven-shoes-lie.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix config types to allow falsy values in integrations list, to match docs
|
|
@ -679,7 +679,9 @@ export interface AstroUserConfig {
|
||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
integrations?: Array<AstroIntegration | AstroIntegration[]>;
|
integrations?: Array<
|
||||||
|
AstroIntegration | (AstroIntegration | false | undefined | null)[] | false | undefined | null
|
||||||
|
>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @docs
|
* @docs
|
||||||
|
|
Loading…
Reference in a new issue