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

@ -45,7 +45,6 @@ const makeEmptyRuleArray = () => [makeEmptyRule()];
const settings = definePluginSettings({
replace: {
type: OptionType.COMPONENT,
description: "",
component: () => {
const { stringRules, regexRules } = settings.use(["stringRules", "regexRules"]);