"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractDate = extractDate;
exports.sleepMs = sleepMs;
exports.sleepSecs = sleepSecs;
function __assignType(fn, args) {
    fn.__type = args;
    return fn;
}
const date_fns_1 = require("date-fns");
function extractDate(date) {
    return (0, date_fns_1.format)(date, 'yyyy-MM-dd');
}
extractDate.__type = ['date', 'extractDate', 'PT2!&/"'];
function sleepMs(ms) {
    return new Promise(__assignType(resolve => setTimeout(resolve, ms), ['resolve', '', 'P"2!"/"']));
}
sleepMs.__type = ['ms', 'sleepMs', 'P\'2!"/"'];
function sleepSecs(secs) {
    return sleepMs(secs * 1000);
}
sleepSecs.__type = ['secs', 'sleepSecs', 'P\'2!"/"'];
//# sourceMappingURL=date.js.map