What problem does it solve?
This Skill automates the creation of TypeScript type definitions and Axios request functions based on API documentation, streamlining frontend development and ensuring type safety.
Core Features & Use Cases
- TypeScript Type Generation: Creates precise TypeScript interfaces for request and response payloads.
- Axios Request Function Generation: Generates ready-to-use Axios functions for API calls.
- React Hook Generation (Optional): Provides a basic React hook for fetching data.
- Code Standardization: Enforces consistent naming conventions and error handling.
- Use Case: When integrating a new backend API, use this Skill to instantly generate all necessary TypeScript types and corresponding API client functions, saving significant manual coding time.
Quick Start
Use the API接口代码生成器 skill to generate TypeScript types and an Axios function for a GET request to '/api/users' that accepts a userId string and returns a user object.