google-photos-migrate
Version:
A tool to fix EXIF data and recover filenames from a Google Photos takeout.
18 lines (17 loc) • 501 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.exhaustiveCheck = void 0;
exports.asyncGenToAsync = asyncGenToAsync;
const exhaustiveCheck = (_) => {
throw new Error('Exhaustive type check failed.');
};
exports.exhaustiveCheck = exhaustiveCheck;
function asyncGenToAsync(f) {
return async (...args) => {
const wg = [];
for await (const result of f(...args)) {
wg.push(result);
}
return Promise.all(wg);
};
}