convert
Convert code between formats and frameworks, including JavaScript to TypeScript and Class components to Hooks. Transform code structure while maintaining functionality.
Instructions
【代码转换器】转换代码格式/框架(JS→TS、Class→Hooks 等)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | 源代码 | |
| from | No | 源格式/框架 | |
| to | No | 目标格式/框架 |
Input Schema (JSON Schema)
{
"properties": {
"code": {
"description": "源代码",
"type": "string"
},
"from": {
"description": "源格式/框架",
"type": "string"
},
"to": {
"description": "目标格式/框架",
"type": "string"
}
},
"required": [],
"type": "object"
}