Fix Tailwind integration Typescript warning (#3732)

* Make options optional

* chore: add changeset

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
This commit is contained in:
Victor 2022-06-28 14:49:08 +02:00 committed by GitHub
parent efd6548d49
commit 6360f474fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/tailwind': patch
---
Marks the Tailwind integration config as optional to fix TypeScript validation warnings

View file

@ -50,7 +50,7 @@ type TailwindOptions =
}
| undefined;
export default function tailwindIntegration(options: TailwindOptions): AstroIntegration {
export default function tailwindIntegration(options?: TailwindOptions): AstroIntegration {
const applyBaseStyles = options?.config?.applyBaseStyles ?? true;
const customConfigPath = options?.config?.path;
return {