File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @tls/enum" ,
3- "version" : " 0.2.6 " ,
3+ "version" : " 0.2.7 " ,
44 "exports" : " ./src/mod.ts" ,
55 "publish" : {
66 "exclude" : [" dist/" ]
1313 }
1414 },
1515 "imports" : {
16- "@aicone/byte" : " jsr:@aicone/byte@^0.5.0" ,
1716 "@noble/curves" : " npm:@noble/curves@^1.6.0" ,
1817 "@std/assert" : " jsr:@std/assert@^1.0.2" ,
19- "@tls/extension" : " jsr:@tls/extension@^0.1.2 " ,
18+ "@tls/extension" : " jsr:@tls/extension@^0.2.0 " ,
2019 "@tls/struct" : " jsr:@tls/struct@^0.2.6"
2120 }
2221}
Original file line number Diff line number Diff line change 11// deno-lint-ignore-file no-slow-types
22// @ts -self-types="../type/contentype.d.ts"
33
4+ import { Uint8 } from "./dep.ts" ;
45import { Enum } from "./enum.js" ;
56
67
@@ -28,6 +29,10 @@ export class ContentType extends Enum {
2829 return ContentType . fromValue ( octet [ 0 ] ) ?? Error ( `Unknown ${ octet [ 0 ] } ContentType type` ) ;
2930 }
3031
32+ get Uint8 ( ) {
33+ return Uint8 . fromValue ( + this )
34+ }
35+
3136 /**return 8 */
3237 get bit ( ) { return 8 }
3338}
Original file line number Diff line number Diff line change @@ -21,5 +21,9 @@ export class ContentType extends Enum {
2121 static from ( octet : Uint8Array ) : ContentType ;
2222 /**return 8 */
2323 get bit ( ) : number ;
24+
25+ /**return Uint8 */
26+ get Uint8 ( ) : Uint8
2427}
28+ import { Uint8 } from "../src/dep.ts" ;
2529import { Enum } from "../src/enum.js" ;
You can’t perform that action at this time.
0 commit comments