Skip to main content

CurateClick

github.com favicon

api-typing

一个基于axios的强类型提示HTTP客户端,旨在解决前端接口对接中的常见问题,如字段拼写错误和接口变更未通知等,通过OpenAPI协议自动生成TypeScript类型提示。

Check out api-typing on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

接口的对接在前端的工作中占据了很大一部分时间,我们在接口对接时经常会遇到以下这些情况:1. 不小心写错了接口字段( url 拼写错误,入参,回参错误)。2. 后端接口变更了(可能是 url,入参,或者回参),但是没有通知到前端。这些错误可能不会立即被暴露出来,直到测试时才会被发现,但是如果项目已经有了完善的 swagger 文档或者其他基于 openapi 协议的文档的话,那么就完全可以在编写接口的时候将这些错误排除掉。那么完成整个逻辑的链条就是 openapi > typescript > 全自动的类型提示。如果你觉得工作中有这些痛点的话,欢迎参与这个项目贡献代码 🌟项目仓库:api-typing

Latest Weekly Picks

promptbuilder.cc favicon
Weekly Pick

Generate, optimize, test, and manage AI prompts in one place. Turn an idea into a ready-to-use prompt in seconds.

Prompt Builder
freqz.net favicon
Weekly Pick

Your Personal K-Style Vibe Photo Studio

Freqz
webleadr.com favicon
Weekly Pick

Find and contact web design leads and businesses without websites, like local dentists, effortlessly from any location in just a few clicks.

Webleadr

the art of having something to say

pretty-scale.com favicon
Weekly Pick

How Pretty Are You? Let AI Decide.

Pretty Scale
c2story.com favicon
Weekly Pick

Create Illustrated Stories with AI

C2story

Impromptu Speech Topics & Timer

Seedance 2.0: Multimodal AI video creator. Precisely direct characters and cameras to create production-ready, multi-shot cinematic stories in one click.