0.0.4 • Published 3 years ago

@rapharacing/interfaces v0.0.4

Weekly downloads
3
License
MIT
Repository
-
Last release
3 years ago

Middleware Interfaces

Middleware Interfaces

TypeScript

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:

  1. 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
  1. Convert JSON Schemas to TS Interfaces
generate:interfaces
  1. Transpile the package
$ yarn build

How to use

import { Address } from "@rapharacing/interfaces";

const Address = ({ data }: Address) => {};