Closed nathonius closed 2 months ago
I hope that fixed your issue!
I hope that fixed your issue!
Tried it today; it does and also doesn't. There's no error when specifying a partial, so the typings are valid in that sense, but they do let me now specify properties on the options that don't exist.
This is valid:
config.addPlugin(IconsPlugin, {
abc: 'xyz', // abc: string
sources: [
{
name: "lucide",
path: "node_modules/lucide-static/icons",
default: true,
},
],
icon: {
attributes: {
"aria-hidden": "true",
},
},
});
Examining the type on the object it just says whatever I've specified, though it is typed enough that VS Code can auto-complete the valid properties of the type when asked. So, good enough for me.
When providing options when loading the plugin, provided options are merged with the default; however, the types don't reflect this:
Very low priority since typescript support with 11ty is very unofficial.