-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Line 28 in 68e716c
| run: (store: Cron) => any | Promise<any> |
As you can see that line, the type is not the same as in:
Lines 46 to 55 in 68e716c
| return { | |
| ...store, | |
| cron: { | |
| ...prevCron, | |
| [name]: new Cron(pattern, options, () => | |
| // @ts-expect-error private property | |
| run(app.singleton.store as any) | |
| ) | |
| } as Record<Name, Cron> | |
| } |
I think it should be something like:
run: (store: Singleton['store'] & Record<"cron", Record<string, Cron>>) => any | Promise<any>But not sure.
Metadata
Metadata
Assignees
Labels
No labels