Files
NapCatQQ/.pnpm-store/v3/files/1a/ffdfedfdf1ad8cbf650dd577716c3bd64c17f1ef3e676cf65e432189542d11adecc969f1156af715fe426f6204f7f5040d1689a4640e948e99cc9ea59de0be
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

20 lines
582 B
Plaintext

import { __decorate } from "tslib";
import { AsnProp } from "@peculiar/asn1-schema";
import { Time } from "./time";
export class Validity {
constructor(params) {
this.notBefore = new Time(new Date());
this.notAfter = new Time(new Date());
if (params) {
this.notBefore = new Time(params.notBefore);
this.notAfter = new Time(params.notAfter);
}
}
}
__decorate([
AsnProp({ type: Time })
], Validity.prototype, "notBefore", void 0);
__decorate([
AsnProp({ type: Time })
], Validity.prototype, "notAfter", void 0);