windingwind / zotero-plugin-toolkit

Toolkit for Zotero Plugin Developers.
https://www.npmjs.com/package/zotero-plugin-toolkit
MIT License
112 stars 13 forks source link

Make MenuitemOptions type more specific #61

Closed Dominic-DallOsto closed 2 months ago

Dominic-DallOsto commented 2 months ago

If we know the tag for the MenuitemOptions, that specifies the type of the getVisibility function.

In this way, we can also enforce that the attributes that are only relevant when the type is menu can only be specified then.

windingwind commented 2 months ago

Thank you :)