"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tryCatch = tryCatch;
function tryCatch(f, callback) {
    f()
        .then(callback)
        .catch((err) => {
        callback(undefined, err);
    });
}
//# sourceMappingURL=err.js.map