Make Option.Component not require description

Also correctly infers the type from "default"
This commit is contained in:
Nuckyz 2025-01-29 14:34:44 -03:00
parent a2213d4feb
commit 5ad35c36e4
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
10 changed files with 26 additions and 28 deletions

View file

@ -120,11 +120,11 @@ const settings = definePluginSettings({
},
clearMessageCache: {
type: OptionType.COMPONENT,
description: "Clear the linked message cache",
component: () =>
component: () => (
<Button onClick={() => messageCache.clear()}>
Clear the linked message cache
</Button>
)
}
});