0.0.4 • Published 3 years ago
@rapharacing/interfaces v0.0.4
Middleware Interfaces
Middleware Interfaces
API documentation
Generated by typedoc
Commands
Unfortunately quicktype-core can not infer definition files properly. It also gives useless errors for debugging InputData.
To Generate CC Interfaces run the following commands:
- Convert OpenApi to JSON Schema
$ openapi2jsonschema https://api.c616d-rapharaci1-d1-public.model-t.cc.commerce.ondemand.com/rest/v2/api-docs -o src/schemas
- Convert JSON Schemas to TS Interfaces
generate:interfaces
- Transpile the package
$ yarn build
How to use
import { Address } from "@rapharacing/interfaces";
const Address = ({ data }: Address) => {};