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:
parent
efd6548d49
commit
6360f474fb
2 changed files with 6 additions and 1 deletions
5
.changeset/khaki-ligers-glow.md
Normal file
5
.changeset/khaki-ligers-glow.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@astrojs/tailwind': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Marks the Tailwind integration config as optional to fix TypeScript validation warnings
|
|
@ -50,7 +50,7 @@ type TailwindOptions =
|
||||||
}
|
}
|
||||||
| undefined;
|
| undefined;
|
||||||
|
|
||||||
export default function tailwindIntegration(options: TailwindOptions): AstroIntegration {
|
export default function tailwindIntegration(options?: TailwindOptions): AstroIntegration {
|
||||||
const applyBaseStyles = options?.config?.applyBaseStyles ?? true;
|
const applyBaseStyles = options?.config?.applyBaseStyles ?? true;
|
||||||
const customConfigPath = options?.config?.path;
|
const customConfigPath = options?.config?.path;
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue