Skip to content

Commit

Permalink
fix (core): allow falsy values in astro config integrations arrays (#…
Browse files Browse the repository at this point in the history
…4427)

* allow falsy values in astro config integrations arrays

* add changeset
  • Loading branch information
cameronmcefee committed Aug 23, 2022
1 parent a2414bf commit b2e976f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eleven-shoes-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix config types to allow falsy values in integrations list, to match docs
4 changes: 3 additions & 1 deletion packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,9 @@ export interface AstroUserConfig {
* }
* ```
*/
integrations?: Array<AstroIntegration | AstroIntegration[]>;
integrations?: Array<
AstroIntegration | (AstroIntegration | false | undefined | null)[] | false | undefined | null
>;

/**
* @docs
Expand Down

0 comments on commit b2e976f

Please sign in to comment.