diff --git a/.changeset/forty-laws-wait.md b/.changeset/forty-laws-wait.md new file mode 100644 index 0000000000..5af9f2997c --- /dev/null +++ b/.changeset/forty-laws-wait.md @@ -0,0 +1,5 @@ +--- +"@medusajs/types": patch +--- + +fix(modules-sdk): Entity types diff --git a/packages/core/types/src/modules-sdk/remote-query-object-from-string.ts b/packages/core/types/src/modules-sdk/remote-query-object-from-string.ts index 9cf833c110..4263a5d664 100644 --- a/packages/core/types/src/modules-sdk/remote-query-object-from-string.ts +++ b/packages/core/types/src/modules-sdk/remote-query-object-from-string.ts @@ -80,7 +80,7 @@ export type RemoteQueryInput = /** * The name of the entity to retrieve. For example, `product`. */ - entity: TEntry + entity: TEntry | keyof RemoteQueryEntryPoints /** * The fields and relations to retrieve in the entity. */