Skip to content

Commit 82c32ca

Browse files
committed
add undefined type
Signed-off-by: MregXN <[email protected]>
1 parent 66d4bd0 commit 82c32ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/actors/runtime/AbstractActor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default abstract class AbstractActor {
9595
async registerActorReminder<_Type>(
9696
reminderName: string,
9797
dueTime: Temporal.Duration,
98-
period: Temporal.Duration,
98+
period: Temporal.Duration | undefined,
9999
ttl?: Temporal.Duration,
100100
state?: any,
101101
) {

src/types/ActorReminder.type.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ limitations under the License.
1414
import { Temporal } from "@js-temporal/polyfill";
1515

1616
export type ActorReminderType = {
17-
period: Temporal.Duration; // e.g. 0h0m9s0ms
17+
period: Temporal.Duration | undefined; // e.g. 0h0m9s0ms
1818
dueTime?: Temporal.Duration; // e.g. 1m or 0h0m0s0ms defaults to 0s
1919
data?: any; // the data to pass
2020
ttl?: Temporal.Duration; // e.g. 1m

0 commit comments

Comments
 (0)