From b2e976f39c383eda8de58a2c86e94cbc9b3d678c Mon Sep 17 00:00:00 2001 From: Cameron McEfee Date: Tue, 23 Aug 2022 05:23:08 -0700 Subject: [PATCH] fix (core): allow falsy values in astro config integrations arrays (#4427) * allow falsy values in astro config integrations arrays * add changeset --- .changeset/eleven-shoes-lie.md | 5 +++++ packages/astro/src/@types/astro.ts | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/eleven-shoes-lie.md 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; + integrations?: Array< + AstroIntegration | (AstroIntegration | false | undefined | null)[] | false | undefined | null + >; /** * @docs