Skip to content

Commit 5de002e

Browse files
committed
fix make plugin parameter optional for TS users
Developing in TS, it seemed to be required the 'option' argument. After looking at the code, I passed an empty object as it would not break. Though this is a "nice to have" so interfaces do not differ as from the documentation.
1 parent 6c27442 commit 5de002e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ type LibCssOptions = {
55
exclude?: string;
66
}
77

8-
export default function (option: LibCssOptions): PluginOption
8+
export default function (option?: LibCssOptions): PluginOption

0 commit comments

Comments
 (0)