@medusajs/client-types
v0.2.12
Published
Client types for Medusa Commerce Rest API
Downloads
15,285
Readme
Medusa Client Types
TypeScript types derived from the OpenAPI Spec (OAS) to be used in API clients.
The source code is generated using the medusa-oas
CLI tooling.
Install
yarn add --dev @medusa/client-types
How to use
Import in the client.
import type { AdminCustomersRes } from "@medusajs/client-types"
import type { Customer } from "@medusajs/client-types"
import type { StoreGetProductCategoryParams } from "@medusajs/client-types"