UNPKG

read-gedcom

Version:
20 lines 649 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SelectionDatePeriod = void 0; const parse_1 = require("../parse"); const internal_1 = require("./internal"); class SelectionDatePeriod extends internal_1.SelectionDate { valueAsDatePeriod() { return this.value().map(v => { const date = (0, parse_1.parseDate)(v); if (date !== null && date.isDatePeriod) { return date; } else { return null; } }); } } exports.SelectionDatePeriod = SelectionDatePeriod; //# sourceMappingURL=SelectionDatePeriod.js.map