Skip to content

Commit 14ee56e

Browse files
committed
add jsDoc to ContentType
1 parent 3cb2238 commit 14ee56e

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
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.3.9",
3+
"version": "0.4.0",
44
"exports": "./src/mod.ts",
55
"publish": {
66
"exclude": ["dist/"]

type/contentype.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,23 @@ export class ContentType extends Enum {
5454
* @returns {TLSPlaintext} A TLSPlaintext object created with the specified parameters.
5555
*/
5656
tlsPlainText(fragment: Uint8Array): TLSPlaintext;
57+
58+
/**
59+
* Creates a `TLSInnerPlaintext` instance from content and zero padding.
60+
*
61+
* @param {Uint8Array} content - The content bytes for the `TLSInnerPlaintext` structure.
62+
* @param {number} numZeros - The number of zero bytes to pad the structure.
63+
* @returns {TLSInnerPlaintext} A new `TLSInnerPlaintext` instance.
64+
*/
65+
tlsInnerPlaintext(content: Uint8Array, numZeros: number): TLSInnerPlaintext;
66+
67+
/**
68+
* Creates a `TLSCiphertext` instance from the encrypted record.
69+
*
70+
* @param {Uint8Array} encrypted_record - The encrypted record bytes for the `TLSCiphertext` structure.
71+
* @returns {TLSCiphertext} A new `TLSCiphertext` instance.
72+
*/
73+
tlsCiphertext(encrypted_record: Uint8Array): TLSCiphertext;
5774
}
5875

5976
/**

0 commit comments

Comments
 (0)