feat: loosely typed container

This commit is contained in:
Harminder Virk authored and GitHub committed 2024-05-31 15:22:03 +05:30
1 parent 2d956931b3
commit 11528526fa
41 files changed
+255 -114

No files matched your search

@@ -13,10 +13,9 @@ export default async ({
// TODO: Add default logger to the container when running tests
const logger =
container.resolve<Logger>(ContainerRegistrationKeys.LOGGER) ?? console
const {
currencyService_,
}: { currencyService_: ModulesSdkTypes.InternalModuleService<Currency> } =
container.resolve(ModuleRegistrationName.CURRENCY)
const { currencyService_ } = container.resolve<{
currencyService_: ModulesSdkTypes.InternalModuleService<Currency>
}>(ModuleRegistrationName.CURRENCY)
try {
const normalizedCurrencies = Object.values(defaultCurrencies).map((c) => ({