fix: Update type Providers (#13927)

**What**
Update Providers type to accept both types simultaneously
This commit is contained in:
juanzgc
2025-11-03 08:30:00 -05:00
committed by GitHub
parent 6ed88141ef
commit 516e217dbb
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/types": minor
---
Update Providers to enable mixed provider entries.

View File

@@ -1,6 +1,6 @@
import { IModuleService, ModuleJoinerConfig } from "../modules-sdk" import { IModuleService, ModuleJoinerConfig } from "../modules-sdk"
type Providers = string[] | { type Providers = (string | {
/** /**
* The ID of the provider to use, as set in `medusa-config.ts`. * The ID of the provider to use, as set in `medusa-config.ts`.
*/ */
@@ -10,7 +10,7 @@ type Providers = string[] | {
* in the provider is used, or the default TTL of the Caching Module if not configured in the provider. * in the provider is used, or the default TTL of the Caching Module if not configured in the provider.
*/ */
ttl?: number ttl?: number
}[] })[]
/** /**
* @since v2.11.0 * @since v2.11.0