Skip to content

Commit db46fa3

Browse files
committed
add undefind type
Signed-off-by: MregXN <[email protected]>
1 parent 522f635 commit db46fa3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/actors/runtime/AbstractActor.ts

100644100755
+2-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ export default abstract class AbstractActor {
115115
timerName: string,
116116
callback: string,
117117
dueTime: Temporal.Duration,
118-
period: Temporal.Duration,
119-
ttl?: Temporal.Duration,
118+
period: Temporal.Duration | undefined,
119+
ttl?: Temporal.Duration | undefined,
120120
state?: any,
121121
) {
122122
// Register the timer in the sidecar

src/types/ActorReminder.type.ts

100644100755
File mode changed.

src/types/ActorTimer.type.ts

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

1616
export type ActorTimerType = {
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
20-
ttl?: Temporal.Duration; // e.g. 1m
20+
ttl?: Temporal.Duration | undefined; // e.g. 1m
2121
callback: string; // which method to execute as callback method
2222
};

0 commit comments

Comments
 (0)