@rapharacing/interfaces
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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) => {};

Package Sidebar

Install

npm i @rapharacing/interfaces

Weekly Downloads

3

Version

0.0.4

License

MIT

Unpacked Size

129 kB

Total Files

12

Last publish

Collaborators

  • john.kilpatrick
  • bbodien
  • alex-windett
  • jakubgajewski
  • michaela_w