Skip to content

Commit 242f74f

Browse files
committed
rev get Uint16 in NamedGroup.js
1 parent 505ff3d commit 242f74f

File tree

3 files changed

+3
-3
lines changed

3 files changed

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

src/namedgroup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class NamedGroup extends Enum {
7979
*
8080
* @returns {Uint16} The Uint16 representation of the NamedGroup.
8181
*/
82-
toUint16() { return Uint16.fromValue(+this); }
82+
get Uint16() { return Uint16.fromValue(+this); }
8383

8484
/**
8585
* Gets the key generation algorithm associated with the NamedGroup.

type/namedgroup.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class NamedGroup extends Enum {
4444
*
4545
* @returns {Uint16} The Uint16 representation of the NamedGroup.
4646
*/
47-
toUint16(): Uint16;
47+
get Uint16(): Uint16;
4848

4949
/**
5050
* Gets the key generation algorithm associated with the NamedGroup.

0 commit comments

Comments
 (0)