wormhole API
@alova/wormhole is a more modern openAPI generation solution for the alova library. It can generate API functions, complete API types, and complete API documents at the same time. Alova's development tools can eliminate the intermediate API documents for you, shortening the collaboration distance between the front-end and back-end like a wormhole. It is also the underlying implementation of the vscode extension.
Installation
# npm
npm i @alova/wormhole --save-dev
# yarn
yarn add @alova/wormhole --dev
# pnpm
pnpm add @alova/wormhole -D
extension installation tips
If you are using vscode, it is strongly recommended that you use @alova/wormhole with alova's vscode extension. Please refer to OpenAPI Integration to install vscode extension
.
If you are using other editors, you can also use the @alova/wormhole command to generate complete API information.