feat: make AbstractModuleService create method type-safe (#11216)

This commit is contained in:
Harminder Virk
2025-02-03 21:25:01 +05:30
committed by GitHub
parent 6cd8249a2c
commit 016e332e9b
23 changed files with 677 additions and 35 deletions

View File

@@ -63,6 +63,7 @@ export default class NotificationModuleService
data: NotificationTypes.CreateNotificationDTO[],
sharedContext?: Context
): Promise<NotificationTypes.NotificationDTO[]>
// @ts-expect-error
createNotifications(
data: NotificationTypes.CreateNotificationDTO,
sharedContext?: Context
@@ -70,6 +71,7 @@ export default class NotificationModuleService
@InjectManager()
@EmitEvents()
// @ts-expect-error
async createNotifications(
data:
| NotificationTypes.CreateNotificationDTO