yapi-typed-runtime
v0.1.6
Published
Browser-safe runtime for yapi-typed generated clients
Readme
yapi-typed-runtime
Browser-safe runtime helpers for code generated by yapi-typed.
This package is installed automatically the first time you run yapi-typed generate. You normally don't need to install it by hand — but pinning it in your package.json is recommended:
pnpm add yapi-typed-runtimeWhat's Included
- Types:
RequestConfig,RequestFunctionParams, … - Enums:
Method,RequestBodyType,ResponseBodyType,QueryStringArrayFormat - Helpers:
prepare()— handles path-param substitution, query-string extraction, and file-data separation - Uploads:
FileData— wraps file payloads for multipart requests
The runtime has no heavy dependencies and is safe to ship in client bundles.
Links
- Generator package:
yapi-typed - Repository: https://github.com/Aybrea/yapi-typed
License
MIT
