Hi,
I’m trying to use the REST resources from the Shopify API library, specifically the Image resource, using this import:
import { Image } from ‘@shopify/shopify-api/dist/ts/rest/admin/2025-01/image’;
However, TypeScript throws this error:
TS2307: Cannot find module ’ @Shopify_77 /shopify-api/dist/ts/rest/admin/2025-01/image’
I have @Shopify_77 /shopify-api installed and the version supports 2025-01. I assumed the type definitions for REST resources would be accessible this way, but it seems not.
Anyone knows the correct way to import REST resources like Image from this package? Or is this structure internal and not meant to be accessed directly?
Thanks!