@preact-signals/safe-react
Version:
Manage state with style in React
51 lines (50 loc) • 1.34 kB
JSON
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Options",
"type": "object",
"properties": {
"file_name": {
"type": ["string", "null"],
"description": "Optional file name. May be omitted or null."
},
"options": {
"$ref": "#/$defs/PreactSignalsPluginOptions",
"description": "Preact Signals plugin options."
}
},
"$defs": {
"PreactSignalsPluginOptions": {
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": ["manual", "all", "auto"],
"description": "Transform mode."
},
"importSource": {
"type": "string",
"description": "Module specifier used for imports."
},
"transformHooks": {
"type": "boolean",
"description": "Whether to transform hooks."
},
"experimental": {
"$ref": "#/$defs/PreactSignalsPluginExperimental"
}
},
"additionalProperties": false
},
"PreactSignalsPluginExperimental": {
"type": "object",
"properties": {
"addHookUsageFlag": {
"type": "boolean",
"description": "Whether to add a hook usage flag (experimental)."
}
},
"additionalProperties": false
}
},
"additionalProperties": true
}