Skip to content

Commit

Permalink
add undefind type
Browse files Browse the repository at this point in the history
Signed-off-by: MregXN <[email protected]>
  • Loading branch information
MregXN committed Nov 21, 2023
1 parent 522f635 commit db46fa3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/actors/runtime/AbstractActor.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ export default abstract class AbstractActor {
timerName: string,
callback: string,
dueTime: Temporal.Duration,
period: Temporal.Duration,
ttl?: Temporal.Duration,
period: Temporal.Duration | undefined,
ttl?: Temporal.Duration | undefined,
state?: any,
) {
// Register the timer in the sidecar
Expand Down
Empty file modified src/types/ActorReminder.type.ts
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions src/types/ActorTimer.type.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ limitations under the License.
import { Temporal } from "@js-temporal/polyfill";

export type ActorTimerType = {
period: Temporal.Duration; // e.g. 0h0m9s0ms
period: Temporal.Duration | undefined; // e.g. 0h0m9s0ms
dueTime?: Temporal.Duration; // e.g. 1m or 0h0m0s0ms defaults to 0s
data?: any; // the data to pass
ttl?: Temporal.Duration; // e.g. 1m
ttl?: Temporal.Duration | undefined; // e.g. 1m
callback: string; // which method to execute as callback method
};

0 comments on commit db46fa3

Please sign in to comment.