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:
Cameron McEfee 2022-08-23 05:23:08 -07:00 committed by GitHub
parent a2414bf59e
commit b2e976f39c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix config types to allow falsy values in integrations list, to match docs

View file

@ -679,7 +679,9 @@ export interface AstroUserConfig {
* }
* ```
*/
integrations?: Array<AstroIntegration | AstroIntegration[]>;
integrations?: Array<
AstroIntegration | (AstroIntegration | false | undefined | null)[] | false | undefined | null
>;
/**
* @docs