diff options
author | 2022-08-23 05:23:08 -0700 | |
---|---|---|
committer | 2022-08-23 08:23:08 -0400 | |
commit | b2e976f39c383eda8de58a2c86e94cbc9b3d678c (patch) | |
tree | 0c0a5122ceddd15ae519d5c5f7711ebe9ef57e2b | |
parent | a2414bf59e2e2cd633aece68e724401c4ad281b9 (diff) | |
download | astro-b2e976f39c383eda8de58a2c86e94cbc9b3d678c.tar.gz astro-b2e976f39c383eda8de58a2c86e94cbc9b3d678c.tar.zst astro-b2e976f39c383eda8de58a2c86e94cbc9b3d678c.zip |
fix (core): allow falsy values in astro config integrations arrays (#4427)
* allow falsy values in astro config integrations arrays
* add changeset
-rw-r--r-- | .changeset/eleven-shoes-lie.md | 5 | ||||
-rw-r--r-- | packages/astro/src/@types/astro.ts | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.changeset/eleven-shoes-lie.md b/.changeset/eleven-shoes-lie.md new file mode 100644 index 000000000..e5700e83b --- /dev/null +++ b/.changeset/eleven-shoes-lie.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix config types to allow falsy values in integrations list, to match docs diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 334f8c42f..58fd77980 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -679,7 +679,9 @@ export interface AstroUserConfig { * } * ``` */ - integrations?: Array<AstroIntegration | AstroIntegration[]>; + integrations?: Array< + AstroIntegration | (AstroIntegration | false | undefined | null)[] | false | undefined | null + >; /** * @docs |