TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Native TypeScript API client generator from OpenAPI schema

2 点作者 vladkens超过 1 年前
Hi, HN! I wrote a native TypeScript utility to generate typed HTTP client from OpenAPI schema. The existing solution didn&#x27;t work for me for various reasons.<p>Please take a look, maybe it will be useful&#x2F;convenient for someone else too.<p>The main idea is to generate a typed client in one file with normal function names (abstraction over bare paths), to be able to understand what broke on the frontend when changing APIs, without extra dependencies on the frontend.<p>My main usecase of this library is with React &#x2F; NestJS backends. So the generation of api call names is well adapted to its swagger plugin.<p>Issues welcome if something doesn&#x27;t work well with your backend framework.

暂无评论

暂无评论