feat(types, product, utils, medusa): Include shared connection for modules (#4626)

This commit is contained in:
Adrien de Peretti
2023-08-08 15:10:34 +00:00
committed by GitHub
parent a2d7540e40
commit 3f3a84262c
26 changed files with 476 additions and 168 deletions
+8 -2
View File
@@ -108,7 +108,11 @@ export type ModuleExports = {
export interface ModuleServiceInitializeOptions {
database: {
clientUrl: string
/**
* Forces to use a shared knex connection
*/
connection?: any
clientUrl?: string
schema?: string
driverOptions?: Record<string, unknown>
debug?: boolean
@@ -117,5 +121,7 @@ export interface ModuleServiceInitializeOptions {
export type ModuleServiceInitializeCustomDataLayerOptions = {
manager?: any
repositories?: { [key: string]: Constructor<RepositoryService> }
repositories?: {
[key: string]: Constructor<RepositoryService>
}
}