@mmg-dev/webpipeline-types-grace-3
v1.0.1
Published
## Introduction This package provides Typescript types for Grace 3. It is maintained by the Webpipeline team.
Downloads
18
Keywords
Readme
Grace 3 Types
Introduction
This package provides Typescript types for Grace 3. It is maintained by the Webpipeline team.
Installation
pnpm i -D @mmg-dev/webpipeline-types-grace-3
Usage
import type { paths, components } from "@mmg-dev/webpipeline-types-grace-3";
// Schema Obj
type MyType = components["schemas"]["MyType"];
// Path params
type EndpointParams = paths["/my-endpoint"]["parameters"];
// Response obj
type SuccessResponse =
paths["/my/endpoint"]["get"]["responses"][200]["content"]["application/json"]["schema"];
type ErrorResponse =
paths["/my/endpoint"]["get"]["responses"][500]["content"]["application/json"]["schema"];
For maintainers
We are publishing this package publicly until we have finished setting up our organization account.
npm publish --access public