Skip to content

Commit 055c96f

Browse files
committed
remove unecessary class from CertificateType
1 parent 23c1bc1 commit 055c96f

File tree

2 files changed

+1
-156
lines changed

2 files changed

+1
-156
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tls/enum",
3-
"version": "0.7.8",
3+
"version": "0.7.9",
44
"exports": "./src/mod.ts",
55
"publish": {
66
"exclude": ["dist/"]

type/certificatetype.d.ts

Lines changed: 0 additions & 155 deletions
Original file line numberDiff line numberDiff line change
@@ -29,158 +29,3 @@ export class CertificateType extends Enum {
2929
get bit(): number;
3030
get byte(): Uint8;
3131
}
32-
33-
/**
34-
* Represents a TLS Certificate Entry.
35-
* @extends {Uint8Array}
36-
*/
37-
export class CertificateEntry extends Uint8Array {
38-
/**
39-
* The opaque certificate data.
40-
*/
41-
readonly opaque: Uint8Array;
42-
43-
/**
44-
* The extensions associated with the certificate.
45-
*/
46-
readonly extension: any[];
47-
48-
/**
49-
* Parsed X.509 certificate.
50-
*/
51-
readonly x509: x509.X509Certificate;
52-
53-
/**
54-
* Creates a `CertificateEntry` instance from an array-like object.
55-
*
56-
* @param {Uint8Array} array - The source array-like object to create the certificate entry from.
57-
* @returns {CertificateEntry} - A new `CertificateEntry` instance.
58-
*/
59-
static from(array: Uint8Array): CertificateEntry;
60-
61-
/**
62-
* Constructs a `CertificateEntry` instance.
63-
*
64-
* @param {Uint8Array} opaque - The opaque certificate data.
65-
* @param {...Uint8Array} extension - The extensions associated with the certificate.
66-
*/
67-
constructor(opaque: Uint8Array, ...extension: Uint8Array[]);
68-
}
69-
70-
/**
71-
* Represents a TLS Certificate structure.
72-
* @extends {Uint8Array}
73-
*/
74-
export class Certificate extends Uint8Array {
75-
/**
76-
* Parses an array to create a `Certificate`.
77-
* @param {Uint8Array} array - The array to parse.
78-
* @returns {Certificate} The parsed certificate.
79-
*/
80-
static from(array: Uint8Array): Certificate;
81-
82-
/**
83-
* Constructs a `Certificate`.
84-
* @param {Uint8Array} opaque - The certificate request context.
85-
* @param {...CertificateEntry} certificateEntry - The list of certificate entries.
86-
*/
87-
constructor(opaque: Uint8Array, ...certificateEntry: CertificateEntry[]);
88-
89-
/** The certificate request context. */
90-
opaque: Uint8Array;
91-
92-
/** The list of certificate entries. */
93-
certificateEntry: CertificateEntry[];
94-
}
95-
96-
/**
97-
* Represents constrained certificate data.
98-
* @extends {Constrained}
99-
* @private
100-
*/
101-
declare class Cert_data extends Constrained {
102-
/**
103-
* Parses an array to create `Cert_data`.
104-
* @param {Uint8Array} array - The array to parse.
105-
* @returns {Cert_data} The parsed certificate data.
106-
*/
107-
static from(array: Uint8Array): Cert_data;
108-
109-
/**
110-
* Constructs a `Cert_data` instance.
111-
* @param {Uint8Array} opaque - The certificate data.
112-
*/
113-
constructor(opaque: Uint8Array);
114-
115-
/** The certificate data. */
116-
opaque: Uint8Array;
117-
}
118-
119-
/**
120-
* Represents constrained extensions.
121-
* @extends {Constrained}
122-
* @private
123-
*/
124-
declare class Extensions extends Constrained {
125-
/**
126-
* Parses an array to create `Extensions`.
127-
* @param {Uint8Array} array - The array to parse.
128-
* @returns {Extensions} The parsed extensions.
129-
*/
130-
static from(array: Uint8Array): Extensions;
131-
132-
/**
133-
* Constructs an `Extensions` instance.
134-
* @param {...Uint8Array} extension - The list of extensions.
135-
*/
136-
constructor(...extension: Uint8Array[]);
137-
138-
/** The list of extensions. */
139-
extension: Uint8Array[];
140-
}
141-
142-
/**
143-
* Represents a certificate request context.
144-
* @extends {Constrained}
145-
* @private
146-
*/
147-
declare class Certificate_request_context extends Constrained {
148-
/**
149-
* Parses an array to create `Certificate_request_context`.
150-
* @param {Uint8Array} array - The array to parse.
151-
* @returns {Certificate_request_context} The parsed context.
152-
*/
153-
static from(array: Uint8Array): Certificate_request_context;
154-
155-
/**
156-
* Constructs a `Certificate_request_context` instance.
157-
* @param {Uint8Array} opaque - The context data.
158-
*/
159-
constructor(opaque: Uint8Array);
160-
161-
/** The context data. */
162-
opaque: Uint8Array;
163-
}
164-
165-
/**
166-
* Represents a certificate list.
167-
* @extends {Constrained}
168-
* @private
169-
*/
170-
declare class Certificate_list extends Constrained {
171-
/**
172-
* Parses an array to create `Certificate_list`.
173-
* @param {Uint8Array} array - The array to parse.
174-
* @returns {Certificate_list} The parsed list.
175-
*/
176-
static from(array: Uint8Array): Certificate_list;
177-
178-
/**
179-
* Constructs a `Certificate_list` instance.
180-
* @param {...CertificateEntry} certificateEntry - The list of certificate entries.
181-
*/
182-
constructor(...certificateEntry: CertificateEntry[]);
183-
184-
/** The list of certificate entries. */
185-
certificateEntry: CertificateEntry[];
186-
}

0 commit comments

Comments
 (0)