Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
eventClick: (_event) => {
var eventDetail = moment(_event['start']).format('MM/DD/YYYY hh:mm') + ' - ' + moment(_event['end']).format('MM/DD/YYYY hh:mm') + '<br>' + _event['detail'];
swal2.default(_event.title,eventDetail,'info');
}
};
function showMessage(title, text, type) {
if (type === void 0) { type = 'error'; }
if (sweetalert2_1.default) {
sweetalert2_1.default({ title: title, text: text, type: type, confirmButtonText: 'OK' });
}
else {
alert(title + ": " + text);
}
}
exports.showMessage = showMessage;