Type utility to create Job and Enqueue data type variants.
type MyNotificationData = NotificationData<{ name: string; age: number;}>;export class MyNotificationJob implements HandlerInterface<MyNotificationData["Job"]> { ...}await notificationJobEnqueuer.enqueueOneOrMore<MyNotificationData["Enqueue"]>( ...); Copy
type MyNotificationData = NotificationData<{ name: string; age: number;}>;export class MyNotificationJob implements HandlerInterface<MyNotificationData["Job"]> { ...}await notificationJobEnqueuer.enqueueOneOrMore<MyNotificationData["Enqueue"]>( ...);
Type utility to create Job and Enqueue data type variants.
Example