UNPKG

durable-functions

Version:

Durable Functions library for Node.js Azure Functions

17 lines 652 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CreateTimerAction = void 0; const util_1 = require("util"); const ActionType_1 = require("./ActionType"); class CreateTimerAction { constructor(fireAt, isCanceled = false) { this.fireAt = fireAt; this.isCanceled = isCanceled; this.actionType = ActionType_1.ActionType.CreateTimer; if (!(0, util_1.isDate)(fireAt)) { throw new TypeError(`fireAt: Expected valid Date object but got ${fireAt}`); } } } exports.CreateTimerAction = CreateTimerAction; //# sourceMappingURL=CreateTimerAction.js.map