feat(types, product, utils, medusa): Include shared connection for modules (#4626)
This commit is contained in:
@@ -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>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user