# yapi-to-typescript

> 根据 YApi 的接口定义生成 TypeScript/JavaScript 的接口类型及其请求函数代码。

Latest version **3.38.0** (published 2024-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install yapi-to-typescript
pnpm add yapi-to-typescript
yarn add yapi-to-typescript
bun add yapi-to-typescript
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.38.0 |
| Published | 2024-11-21 |
| First published | 2018-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 471 |
| Author | Jay Fong |
| Maintainers | funch |
| Keywords | yapi, codegen, typescript |

## Links

- npm: https://www.npmjs.com/package/yapi-to-typescript
- Repository: https://github.com/fjc0k/yapi-to-typescript
- Issues: https://github.com/fjc0k/yapi-to-typescript/issues
- npm.io page: https://npm.io/package/yapi-to-typescript

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 3.38.0 (latest) — 2024-11-21
- 3.26.1-beta.1 (next) — 2021-10-22
- 3.37.1 — 2023-08-14
- 3.37.0 — 2023-02-08
- 3.36.0 — 2022-11-17
- 3.35.0 — 2022-09-20
- 3.34.1 — 2022-07-11
- 3.34.0 — 2022-03-23
- 3.33.2 — 2022-03-18
- 3.33.1 — 2022-03-14
- 3.33.0 — 2022-03-12
- 3.32.1 — 2022-03-12
- 3.32.0 — 2022-02-26
- 3.31.2 — 2022-02-16
- 3.31.1 — 2022-02-15
- … 153 more at https://npm.io/package/yapi-to-typescript/versions

## README

# YApi to TypeScript ![Test](https://github.com/fjc0k/yapi-to-typescript/workflows/Test/badge.svg) [![codecov](https://codecov.io/gh/fjc0k/yapi-to-typescript/branch/master/graph/badge.svg)](https://codecov.io/gh/fjc0k/yapi-to-typescript)

`YApi to TypeScript`（简称 `ytt`） 是一个代码生成工具，其可根据 [YApi](https://github.com/YMFE/yapi) 或 [Swagger](https://swagger.io/) 的接口定义生成 TypeScript 或 JavaScript 的接口类型及其请求函数代码。

## 文档

- [介绍](https://fjc0k.github.io/yapi-to-typescript/handbook/)
- [配置](https://fjc0k.github.io/yapi-to-typescript/handbook/config.html)
- [使用](https://fjc0k.github.io/yapi-to-typescript/handbook/usage.html)
- [统一请求函数](https://fjc0k.github.io/yapi-to-typescript/handbook/request.html)
- [更新日志](https://fjc0k.github.io/yapi-to-typescript/handbook/changelog.html)
- [国内镜像 🇨🇳](https://fjc0k.gitee.io/yapi-to-typescript/handbook/)

## 交流群

钉钉扫码加入交流群：

<img src="https://cdn.jsdelivr.net/gh/fjc0k/yapi-to-typescript@master/assets/dd.jpg" width="300" />

## 许可

[MIT](https://github.com/fjc0k/yapi-to-typescript/blob/master/LICENSE) © [Jay Fong](https://github.com/fjc0k)

---
_Source: https://npm.io/package/yapi-to-typescript · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
