YApi Helper
ExtensionDeveloper Tools
Overview
提供在 YApi 接口页面快速复制 TS 类型与请求方法的功能。
支持从 YApi 接口定义页面 自动生成 TypeScript 类型代码,并支持自定义生成模版。 功能特性 1. 一键从 YApi 接口生成各类型的接口请求方法 2. 支持用户自定义模版(通过扩展设置页面配置) 3. 使用 chrome.storage.sync 持久保存配置,跨设备同步 模版配置说明 示例: export const {{fnName}} = (payload: {{ReqType}}) => { return http.request<{{ResType}}>( '{{method}}', '{{url}}', { {{dataField}}: payload } ); }; 配置项说明 {{fnName}}: 函数名 {{ReqType}}: 请求类型 {{ResType}}: 响应类型 {{method}}: 请求方法 {{url}}: 请求 URL {{dataField}}: 请求数据字段
0 out of 5No ratings
Details
- Version1.0.0
- UpdatedSeptember 20, 2025
- Size10.78KiB
- Languages中文(中国)
- Developer
Email
zbfcqtl@gmail.com - Non-traderThis developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.
Privacy
The developer has disclosed that it will not collect or use your data.
This developer declares that your data is
- Not being sold to third parties, outside of the approved use cases
- Not being used or transferred for purposes that are unrelated to the item's core functionality
- Not being used or transferred to determine creditworthiness or for lending purposes