asn1-ts
Version:
ASN.1 encoding and decoding, including BER, CER, and DER.
19 lines (18 loc) • 816 B
text/typescript
import type { INTEGER, OPTIONAL } from "../../macros.mjs";
export default class DURATION_INTERVAL_ENCODING {
readonly years: OPTIONAL<INTEGER>;
readonly months: OPTIONAL<INTEGER>;
readonly weeks: OPTIONAL<INTEGER>;
readonly days: OPTIONAL<INTEGER>;
readonly hours: OPTIONAL<INTEGER>;
readonly minutes: OPTIONAL<INTEGER>;
readonly seconds: OPTIONAL<INTEGER>;
readonly fractional_part: OPTIONAL<{
number_of_digits: INTEGER;
fractional_value: INTEGER;
}>;
constructor(years: OPTIONAL<INTEGER>, months: OPTIONAL<INTEGER>, weeks: OPTIONAL<INTEGER>, days: OPTIONAL<INTEGER>, hours: OPTIONAL<INTEGER>, minutes: OPTIONAL<INTEGER>, seconds: OPTIONAL<INTEGER>, fractional_part: OPTIONAL<{
number_of_digits: INTEGER;
fractional_value: INTEGER;
}>);
}