From f485b553cabf7c1344132150beab2c9a7ebafdb1 Mon Sep 17 00:00:00 2001 From: MregXN Date: Tue, 21 Nov 2023 10:02:29 +0800 Subject: [PATCH] add undefined type Signed-off-by: MregXN --- src/actors/runtime/AbstractActor.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/actors/runtime/AbstractActor.ts b/src/actors/runtime/AbstractActor.ts index 22eaac25..c8175d8e 100644 --- a/src/actors/runtime/AbstractActor.ts +++ b/src/actors/runtime/AbstractActor.ts @@ -95,15 +95,15 @@ export default abstract class AbstractActor { async registerActorReminder<_Type>( reminderName: string, dueTime: Temporal.Duration, - period?: Temporal.Duration, - ttl?: Temporal.Duration, + period?: Temporal.Duration|undefined, + ttl?: Temporal.Duration|undefined, state?: any, ) { await this.actorClient.actor.registerActorReminder(this.actorType, this.id, reminderName, { period, dueTime, - data: state, ttl, + data: state, }); }