invalidity_date.js 621 B

12345678910111213141516171819
  1. import { __decorate } from "tslib";
  2. import { AsnProp, AsnPropTypes, AsnType, AsnTypeTypes, } from "@peculiar/asn1-schema";
  3. import { id_ce } from "../object_identifiers.js";
  4. export const id_ce_invalidityDate = `${id_ce}.24`;
  5. let InvalidityDate = class InvalidityDate {
  6. value = new Date();
  7. constructor(value) {
  8. if (value) {
  9. this.value = value;
  10. }
  11. }
  12. };
  13. __decorate([
  14. AsnProp({ type: AsnPropTypes.GeneralizedTime })
  15. ], InvalidityDate.prototype, "value", void 0);
  16. InvalidityDate = __decorate([
  17. AsnType({ type: AsnTypeTypes.Choice })
  18. ], InvalidityDate);
  19. export { InvalidityDate };