Replies: 1 comment 6 replies
-
👍 I have the same problem after migrating from Agenda 3 to Agenda 4. I'm extending the |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all - am I missing something completely obvious? I'd like to add custom properties to my data object to access while running a job. In the typescript typings it shows:
Which means that I should be able to define an interface that extends
JobAttributesData
like:Then use in my job definition callback like so:
However, typescript shows a syntax error on the
async (job: Job<Test>)
stating:What can I do to resolve this? Is my understanding of extending incorrect? Thanks!
EDIT:
Is this because I am attempting to extend from
JobAttributesData
which as the signature:So when I extend from that, it has no way of identifying if I am using a dynamic key name or not? I see that I can in-fact, work around this by defining my
Test
interface as:Beta Was this translation helpful? Give feedback.
All reactions