feat(modules-sdk): Remote Query (#4463)

* feat: Remote Query
This commit is contained in:
Carlos R. L. Rodrigues authored and GitHub committed 2023-07-19 15:35:36 -03:00
1 parent 95c538c675
commit 5a8a889c6d
57 files changed
+1286 -423

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@ export const initialize = async (
}
): Promise<IInventoryService> => {
const serviceKey = Modules.INVENTORY
const loaded = await MedusaModule.bootstrap(
const loaded = await MedusaModule.bootstrap<IInventoryService>(
serviceKey,
"@medusajs/inventory",
options as InternalModuleDeclaration | ExternalModuleDeclaration,
@@ -23,5 +23,5 @@ export const initialize = async (
injectedDependencies
)
return loaded[serviceKey] as IInventoryService
return loaded[serviceKey]
}