Shopify / shopify-app-template-remix

350 stars 147 forks source link

Allow export of REST Resource Types from the @shopify/shopify-api package #814

Open HadiMalikDev opened 2 months ago

HadiMalikDev commented 2 months ago

Issue summary

Before opening this issue, I have:

After the @shopify/shopify-api package was removed as a direct dependency from the package, I can no longer import the types for the REST Resources, such as Product, Variant, and Order etc. More information can be found here

Expected behavior

I should be able to import the aforementioned types from the @shopify/shopify-api package the same way as I could, before the package was removed as direct dependency

Actual behavior

The types are no longer exported, as they could be when the @shopify/shopiyf-api package was a direct dependency

Steps to reproduce the problem

  1. Create a boilerplate remix app
  2. Try importing any type, such as Product using import type { Product } from "node_modules/@shopify/shopify-api/dist/ts/rest/admin/2024-04/product";

Debug logs

Not applicable

lizkenyon commented 2 months ago

Thanks for creating this issue! The team will triage it, and look into it.