core-utils
    Preparing search index...

    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"]>(
    ...
    );
    interface NotificationData<T> {
        Enqueue: NotificationEnqueueData & T;
        Job: NotificationJobData & T;
    }

    Type Parameters

    • T
    Index

    Properties

    Properties