@@ -122,6 +122,7 @@ declare namespace $ {
122
122
declare namespace $ {
123
123
interface $mol_wire_sub extends $mol_wire_pub {
124
124
temp : boolean ;
125
+ pub_list : $mol_wire_pub [ ] ;
125
126
track_on ( ) : $mol_wire_sub | null ;
126
127
track_next ( pub ?: $mol_wire_pub ) : $mol_wire_pub | null ;
127
128
pub_off ( pub_pos : number ) : void ;
@@ -147,8 +148,8 @@ declare namespace $ {
147
148
hasBody : ( val : any , config : any ) => boolean ;
148
149
body : ( val : any , config : any ) => any ;
149
150
} ) : void ;
150
- let $mol_dev_format_head : symbol ;
151
- let $mol_dev_format_body : symbol ;
151
+ const $mol_dev_format_head : unique symbol;
152
+ const $mol_dev_format_body : unique symbol;
152
153
function $mol_dev_format_native ( obj : any ) : any [ ] ;
153
154
function $mol_dev_format_auto ( obj : any ) : any [ ] ;
154
155
function $mol_dev_format_element ( element : string , style : object , ...content : any [ ] ) : any [ ] ;
@@ -168,7 +169,6 @@ declare namespace $ {
168
169
169
170
declare namespace $ {
170
171
class $mol_wire_pub_sub extends $mol_wire_pub implements $mol_wire_sub {
171
- [ x : symbol ] : ( ) => any [ ] ;
172
172
protected pub_from : number ;
173
173
protected cursor : $mol_wire_cursor ;
174
174
get temp ( ) : boolean ;
@@ -183,6 +183,7 @@ declare namespace $ {
183
183
complete ( ) : void ;
184
184
complete_pubs ( ) : void ;
185
185
absorb ( quant ?: $mol_wire_cursor ) : void ;
186
+ [ $mol_dev_format_head ] ( ) : any [ ] ;
186
187
get pub_empty ( ) : boolean ;
187
188
}
188
189
}
@@ -203,7 +204,6 @@ declare namespace $ {
203
204
204
205
declare namespace $ {
205
206
abstract class $mol_wire_fiber < Host , Args extends readonly unknown [ ] , Result > extends $mol_wire_pub_sub {
206
- [ x : symbol ] : string | ( ( ) => any [ ] ) ;
207
207
readonly task : ( this : Host , ...args : Args ) => Result ;
208
208
readonly host ?: Host | undefined ;
209
209
static warm : boolean ;
@@ -223,6 +223,7 @@ declare namespace $ {
223
223
reap ( ) : void ;
224
224
toString ( ) : string ;
225
225
toJSON ( ) : string ;
226
+ [ $mol_dev_format_head ] ( ) : any [ ] ;
226
227
get $ ( ) : any ;
227
228
emit ( quant ?: $mol_wire_cursor ) : void ;
228
229
fresh ( ) : this | undefined ;
@@ -234,6 +235,7 @@ declare namespace $ {
234
235
destructor ( ) : void ;
235
236
} ;
236
237
step ( ) : Promise < null > ;
238
+ destructor ( ) : void ;
237
239
}
238
240
}
239
241
@@ -921,7 +923,6 @@ declare namespace $ {
921
923
function $mol_view_visible_height ( ) : number ;
922
924
function $mol_view_state_key ( suffix : string ) : string ;
923
925
class $mol_view extends $mol_object {
924
- [ x : symbol ] : ( ) => any [ ] ;
925
926
static Root < This extends typeof $mol_view > ( this : This , id : number ) : InstanceType < This > ;
926
927
autorun ( ) : void ;
927
928
static autobind ( ) : void ;
@@ -978,6 +979,7 @@ declare namespace $ {
978
979
[ x : string ] : ( event : Event ) => Promise < void > ;
979
980
} ;
980
981
plugins ( ) : readonly $mol_view [ ] ;
982
+ [ $mol_dev_format_head ] ( ) : any [ ] ;
981
983
view_find ( check : ( path : $mol_view , text ?: string ) => boolean , path ?: $mol_view [ ] ) : Generator < $mol_view [ ] > ;
982
984
force_render ( path : Set < $mol_view > ) : void ;
983
985
ensure_visible ( view : $mol_view , align ?: ScrollLogicalPosition ) : void ;
@@ -1073,7 +1075,7 @@ declare namespace $ {
1073
1075
}
1074
1076
1075
1077
declare namespace $ {
1076
- function $mol_charset_encode ( value : string ) : Uint8Array < ArrayBufferLike > ;
1078
+ function $mol_charset_encode ( value : string ) : Uint8Array < ArrayBuffer > ;
1077
1079
}
1078
1080
1079
1081
declare namespace $ {
@@ -1105,12 +1107,12 @@ declare namespace $ {
1105
1107
type ( ) : "" | $mol_file_type ;
1106
1108
name ( ) : string ;
1107
1109
ext ( ) : string ;
1108
- abstract buffer ( next ?: Uint8Array ) : Uint8Array ;
1110
+ abstract buffer ( next ?: Uint8Array < ArrayBuffer > ) : Uint8Array < ArrayBuffer > ;
1109
1111
text ( next ?: string , virt ?: 'virt' ) : string ;
1110
1112
abstract sub ( ) : $mol_file [ ] ;
1111
1113
abstract resolve ( path : string ) : $mol_file ;
1112
1114
abstract relate ( base ?: $mol_file ) : string ;
1113
- abstract append ( next : Uint8Array | string ) : void ;
1115
+ abstract append ( next : Uint8Array < ArrayBuffer > | string ) : void ;
1114
1116
find ( include ?: RegExp , exclude ?: RegExp ) : $mol_file [ ] ;
1115
1117
size ( ) : number ;
1116
1118
open ( ...modes : readonly ( 'create' | 'exists_truncate' | 'exists_fail' | 'read_only' | 'write_only' | 'read_write' | 'append' ) [ ] ) : number ;
@@ -1141,11 +1143,11 @@ declare namespace $ {
1141
1143
stat ( next ?: $mol_file_stat | null , virt ?: 'virt' ) : $mol_file_stat | null ;
1142
1144
ensure ( ) : void ;
1143
1145
drop ( ) : void ;
1144
- buffer ( next ?: Uint8Array ) : Uint8Array < ArrayBufferLike > ;
1146
+ buffer ( next ?: Uint8Array < ArrayBuffer > ) : Uint8Array < ArrayBuffer > ;
1145
1147
sub ( ) : $mol_file [ ] ;
1146
1148
resolve ( path : string ) : $mol_file ;
1147
1149
relate ( base ?: $mol_file ) : string ;
1148
- append ( next : Uint8Array | string ) : undefined ;
1150
+ append ( next : Uint8Array < ArrayBuffer > | string ) : undefined ;
1149
1151
open ( ...modes : readonly ( keyof typeof $mol_file_mode_open ) [ ] ) : number ;
1150
1152
}
1151
1153
}
@@ -1240,16 +1242,16 @@ declare namespace $ {
1240
1242
}
1241
1243
1242
1244
declare namespace $ {
1243
- function $mol_base64_decode ( base64 : string ) : Uint8Array ;
1245
+ function $mol_base64_decode ( base64 : string ) : Uint8Array < ArrayBuffer > ;
1244
1246
}
1245
1247
1246
1248
declare namespace $ {
1247
- function $mol_base64_decode_node ( base64Str : string ) : Uint8Array ;
1249
+ function $mol_base64_decode_node ( base64Str : string ) : Uint8Array < ArrayBuffer > ;
1248
1250
}
1249
1251
1250
1252
declare namespace $ {
1251
1253
function $mol_base64_url_encode ( buffer : Uint8Array ) : string ;
1252
- function $mol_base64_url_decode ( str : string ) : Uint8Array < ArrayBufferLike > ;
1254
+ function $mol_base64_url_decode ( str : string ) : Uint8Array < ArrayBuffer > ;
1253
1255
}
1254
1256
1255
1257
declare namespace $ {
@@ -1322,7 +1324,6 @@ declare namespace $ {
1322
1324
data = 1
1323
1325
}
1324
1326
class $hyoo_crowd_unit extends Object {
1325
- [ x : symbol ] : ( ( ) => any [ ] ) | ( ( ) => string ) ;
1326
1327
readonly land : $mol_int62_string ;
1327
1328
readonly auth : $mol_int62_string ;
1328
1329
readonly head : $mol_int62_string ;
@@ -1337,21 +1338,21 @@ declare namespace $ {
1337
1338
group ( ) : $hyoo_crowd_unit_group ;
1338
1339
level ( ) : $hyoo_crowd_peer_level ;
1339
1340
[ Symbol . toPrimitive ] ( ) : string ;
1341
+ [ $mol_dev_format_head ] ( ) : any [ ] ;
1340
1342
}
1341
- class $hyoo_crowd_unit_bin extends DataView {
1342
- static from_buffer ( buffer : Int16Array ) : any ;
1343
- static from_unit ( unit : $hyoo_crowd_unit ) : any ;
1344
- sign ( next ?: Uint8Array ) : Uint8Array < any > ;
1343
+ class $hyoo_crowd_unit_bin extends DataView < ArrayBuffer > {
1344
+ static from_buffer ( buffer : Int16Array ) : $hyoo_crowd_unit_bin ;
1345
+ static from_unit ( unit : $hyoo_crowd_unit ) : $hyoo_crowd_unit_bin ;
1346
+ sign ( next ?: Uint8Array ) : Uint8Array < ArrayBuffer > ;
1345
1347
size ( ) : number ;
1346
- sens ( ) : Uint8Array < any > ;
1348
+ sens ( ) : Uint8Array < ArrayBuffer > ;
1347
1349
unit ( ) : $hyoo_crowd_unit ;
1348
1350
}
1349
1351
function $hyoo_crowd_unit_compare ( left : $hyoo_crowd_unit , right : $hyoo_crowd_unit ) : number ;
1350
1352
}
1351
1353
1352
1354
declare namespace $ {
1353
1355
class $hyoo_crowd_node extends $mol_object2 {
1354
- [ x : symbol ] : ( ( ) => any [ ] ) | ( ( ) => string ) ;
1355
1356
readonly land : $hyoo_crowd_land ;
1356
1357
readonly head : $mol_int62_string ;
1357
1358
constructor ( land ?: $hyoo_crowd_land , head ?: $mol_int62_string ) ;
@@ -1365,6 +1366,7 @@ declare namespace $ {
1365
1366
virgin ( ) : boolean ;
1366
1367
[ Symbol . toPrimitive ] ( ) : string ;
1367
1368
toJSON ( ) : `${string } _${string } `;
1369
+ [ $mol_dev_format_head ] ( ) : any [ ] ;
1368
1370
}
1369
1371
}
1370
1372
@@ -1559,7 +1561,6 @@ declare namespace $ {
1559
1561
1560
1562
declare namespace $ {
1561
1563
class $hyoo_crowd_clock extends Map < $mol_int62_string , number > {
1562
- [ x : symbol ] : ( ) => any [ ] ;
1563
1564
static begin : number ;
1564
1565
last_time : number ;
1565
1566
constructor ( entries ?: Iterable < readonly [ $mol_int62_string , number ] > ) ;
@@ -1573,11 +1574,12 @@ declare namespace $ {
1573
1574
now ( ) : number ;
1574
1575
last_stamp ( ) : number ;
1575
1576
tick ( peer : $mol_int62_string ) : number ;
1577
+ [ $mol_dev_format_head ] ( ) : any [ ] ;
1576
1578
}
1577
- class $hyoo_crowd_clock_bin extends DataView {
1578
- static from ( land_id : $mol_int62_string , clocks : readonly [ $hyoo_crowd_clock , $hyoo_crowd_clock ] , count : number ) : any ;
1579
+ class $hyoo_crowd_clock_bin extends DataView < ArrayBuffer > {
1580
+ static from ( land_id : $mol_int62_string , clocks : readonly [ $hyoo_crowd_clock , $hyoo_crowd_clock ] , count : number ) : $hyoo_crowd_clock_bin ;
1579
1581
land ( ) : `${string } _${string } `;
1580
- count ( ) : any ;
1582
+ count ( ) : number ;
1581
1583
}
1582
1584
}
1583
1585
@@ -1614,7 +1616,6 @@ declare namespace $ {
1614
1616
1615
1617
declare namespace $ {
1616
1618
class $hyoo_crowd_land extends $mol_object {
1617
- [ x : symbol ] : ( ) => any [ ] ;
1618
1619
id ( ) : `${string } _${string } `;
1619
1620
toJSON ( ) : `${string } _${string } `;
1620
1621
peer ( ) : $hyoo_crowd_peer ;
@@ -1623,7 +1624,7 @@ declare namespace $ {
1623
1624
get clock_auth ( ) : $hyoo_crowd_clock ;
1624
1625
get clock_data ( ) : $hyoo_crowd_clock ;
1625
1626
get clocks ( ) : readonly [ $hyoo_crowd_clock , $hyoo_crowd_clock ] ;
1626
- get clocks_bin ( ) : Uint8Array < any > ;
1627
+ get clocks_bin ( ) : Uint8Array < ArrayBuffer > ;
1627
1628
readonly pub : $mol_wire_pub ;
1628
1629
readonly _clocks : readonly [ $hyoo_crowd_clock , $hyoo_crowd_clock ] ;
1629
1630
_unit_all : Map < `${string } _${string } !${string } _${string } `, $hyoo_crowd_unit > ;
@@ -1666,6 +1667,7 @@ declare namespace $ {
1666
1667
wipe ( unit : $hyoo_crowd_unit ) : $hyoo_crowd_unit ;
1667
1668
move ( unit : $hyoo_crowd_unit , head : $mol_int62_string , prev : $mol_int62_string ) : void ;
1668
1669
insert ( unit : $hyoo_crowd_unit , head : $mol_int62_string , seat : number ) : void ;
1670
+ [ $mol_dev_format_head ] ( ) : any [ ] ;
1669
1671
}
1670
1672
}
1671
1673
@@ -2374,7 +2376,6 @@ declare namespace $ {
2374
2376
2375
2377
declare namespace $ {
2376
2378
class $hyoo_sync_yard < Line > extends $mol_object2 {
2377
- [ x : symbol ] : ( ) => any [ ] ;
2378
2379
db_unit_persisted : WeakSet < $hyoo_crowd_unit > ;
2379
2380
log_pack ( data : any ) : any ;
2380
2381
peer ( next ?: string ) : $hyoo_crowd_peer ;
@@ -2416,9 +2417,10 @@ declare namespace $ {
2416
2417
line : Line ;
2417
2418
land : $mol_int62_string ;
2418
2419
} , next ?: Promise < any > [ ] ) : Promise < any > [ ] ;
2419
- line_receive ( line : Line , message : Uint8Array ) : Promise < void > ;
2420
+ line_receive ( line : Line , message : Uint8Array < ArrayBuffer > ) : Promise < void > ;
2420
2421
line_send_clocks ( line : Line , land : $hyoo_crowd_land ) : void ;
2421
2422
line_send_units ( line : Line , units : readonly $hyoo_crowd_unit [ ] ) : Promise < void > ;
2423
+ [ $mol_dev_format_head ] ( ) : any [ ] ;
2422
2424
}
2423
2425
}
2424
2426
@@ -3589,7 +3591,6 @@ declare namespace $ {
3589
3591
offset ?: $mol_time_duration_config ;
3590
3592
} ;
3591
3593
class $mol_time_moment extends $mol_time_base {
3592
- [ x : symbol ] : ( ( ) => any [ ] ) | ( ( mode : "default" | "number" | "string" ) => string | number ) ;
3593
3594
constructor ( config ?: $mol_time_moment_config ) ;
3594
3595
readonly year : number | undefined ;
3595
3596
readonly month : number | undefined ;
@@ -3611,6 +3612,7 @@ declare namespace $ {
3611
3612
toJSON ( ) : string ;
3612
3613
toString ( pattern ?: string ) : string ;
3613
3614
[ Symbol . toPrimitive ] ( mode : 'default' | 'number' | 'string' ) : string | number ;
3615
+ [ $mol_dev_format_head ] ( ) : any [ ] ;
3614
3616
static patterns : {
3615
3617
YYYY : ( moment : $mol_time_moment ) => string ;
3616
3618
AD : ( moment : $mol_time_moment ) => string ;
@@ -3753,7 +3755,7 @@ declare namespace $ {
3753
3755
reviews ( ) : string ;
3754
3756
review_allowed ( ) : boolean ;
3755
3757
post_template ( id : keyof typeof $piterjs_post_template , next ?: string ) : string ;
3756
- post_moment ( id : keyof typeof $piterjs_post_template , next ?: $mol_time_moment ) : $mol_time_moment | null ;
3758
+ post_moment ( id : keyof typeof $piterjs_post_template , next ?: $mol_time_moment ) : $mol_time_moment ;
3757
3759
post_text ( id : keyof typeof $piterjs_post_template ) : string ;
3758
3760
}
3759
3761
}
@@ -4421,7 +4423,7 @@ declare namespace $ {
4421
4423
declare namespace $ {
4422
4424
class $mol_syntax2 < Lexems extends {
4423
4425
[ name : string ] : RegExp ;
4424
- } > {
4426
+ } = { } > {
4425
4427
lexems : Lexems ;
4426
4428
constructor ( lexems : Lexems ) ;
4427
4429
rules : Array < {
0 commit comments