diff options
-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 |