Skip to content

Add an enqueue generic for payload type #73

@gtoselli

Description

@gtoselli

It would be amazing if, instead of doing

await jobs.payments.enqueue('foo-queue', {
  name: 'foo-job',
  payload: { invoiceId: invoice.id } satisfies SendInvoicePayload,
})

It could do something like

await jobs.payments.enqueue<SendInvoicePayload>('foo-queue', {
  name: 'foo-job',
  payload: { invoiceId: invoice.id },
})

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions