Skip to content

Commit

Permalink
Fix Tailwind integration Typescript warning (#3732)
Browse files Browse the repository at this point in the history
* Make options optional

* chore: add changeset

Co-authored-by: Tony Sullivan <[email protected]>
  • Loading branch information
inwardmovement and Tony Sullivan authored Jun 28, 2022
1 parent efd6548 commit 6360f47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/khaki-ligers-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/tailwind': patch
---

Marks the Tailwind integration config as optional to fix TypeScript validation warnings
2 changes: 1 addition & 1 deletion packages/integrations/tailwind/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6360f47

Please sign in to comment.