File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ const BERT_TOKENS = {
51
51
* can be strings or binaries or atoms. Don't even get me started on numbers.
52
52
* Forcing explicit typing like this causes less errors during encoding.
53
53
*/
54
- class BertObj {
54
+ export class BertObj {
55
55
constructor ( type , value ) {
56
56
this . type = type
57
57
this . value = value
@@ -65,7 +65,7 @@ class BertObj {
65
65
* one byte of data, or an array, with each element being one byte of data. The
66
66
* encoding process will generate an array of byte data given a BertObj object.
67
67
*/
68
- class Bert {
68
+ export default class Bert {
69
69
static Nil ( ) { return new BertObj ( "Nil" , [ ] ) }
70
70
static Int ( value ) { return new BertObj ( "Int" , value ) }
71
71
static Float ( value ) { return new BertObj ( "NewFloat" , value ) }
@@ -482,5 +482,3 @@ class Bert {
482
482
throw "Your data is too long. Seriously, way too long."
483
483
}
484
484
}
485
-
486
- export default Bert
You can’t perform that action at this time.
0 commit comments