fix(medusa): fix type of data in SubscriberArgs (#7324)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-05-14 13:59:25 +03:00
1 parent e2dfe91071
commit 9ca302d33f
1 file changed
+11 -1
+11 -1
View File
@@ -10,7 +10,17 @@ export type SubscriberConfig = {
}
export type SubscriberArgs<T = unknown> = {
data: T
data:
| T
| {
metadata: {
service: string
action: string
object: string
eventGroupId?: string
}
data: T
}
eventName: string
container: MedusaContainer
pluginOptions: Record<string, unknown>