mol_jsx_lib 0.0.838 → 0.0.840
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node.d.ts +196 -194
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +1448 -1443
- package/node.js.map +1 -1
- package/node.mjs +1448 -1443
- package/node.test.js +1856 -1851
- package/node.test.js.map +1 -1
- package/package.json +17 -17
- package/web.js +1 -1
- package/web.js.map +1 -1
- package/web.mjs +1 -1
package/node.d.ts
CHANGED
|
@@ -22,45 +22,99 @@ declare namespace $ {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
declare namespace $ {
|
|
25
|
-
|
|
25
|
+
enum $mol_wire_cursor {
|
|
26
|
+
stale = -1,
|
|
27
|
+
doubt = -2,
|
|
28
|
+
fresh = -3,
|
|
29
|
+
final = -4
|
|
30
|
+
}
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
declare namespace $ {
|
|
29
|
-
|
|
34
|
+
class $mol_wire_pub extends Object {
|
|
35
|
+
data: unknown[];
|
|
36
|
+
static get [Symbol.species](): ArrayConstructor;
|
|
37
|
+
protected sub_from: number;
|
|
38
|
+
get sub_list(): readonly $mol_wire_sub[];
|
|
39
|
+
get sub_empty(): boolean;
|
|
40
|
+
sub_on(sub: $mol_wire_pub, pub_pos: number): number;
|
|
41
|
+
sub_off(sub_pos: number): void;
|
|
42
|
+
reap(): void;
|
|
43
|
+
promote(): void;
|
|
44
|
+
fresh(): void;
|
|
45
|
+
complete(): void;
|
|
46
|
+
get incompleted(): boolean;
|
|
47
|
+
emit(quant?: $mol_wire_cursor): void;
|
|
48
|
+
peer_move(from_pos: number, to_pos: number): void;
|
|
49
|
+
peer_repos(peer_pos: number, self_pos: number): void;
|
|
50
|
+
}
|
|
30
51
|
}
|
|
31
52
|
|
|
32
53
|
declare namespace $ {
|
|
33
|
-
|
|
54
|
+
interface $mol_wire_sub extends $mol_wire_pub {
|
|
55
|
+
temp: boolean;
|
|
56
|
+
track_on(): $mol_wire_sub | null;
|
|
57
|
+
track_next(pub?: $mol_wire_pub): $mol_wire_pub | null;
|
|
58
|
+
pub_off(pub_pos: number): void;
|
|
59
|
+
track_cut(sub: $mol_wire_pub | null): void;
|
|
60
|
+
track_off(sub: $mol_wire_pub | null): void;
|
|
61
|
+
absorb(quant: $mol_wire_cursor): void;
|
|
62
|
+
destructor(): void;
|
|
63
|
+
}
|
|
34
64
|
}
|
|
35
65
|
|
|
36
66
|
declare namespace $ {
|
|
37
|
-
|
|
67
|
+
let $mol_wire_auto_sub: $mol_wire_sub | null;
|
|
68
|
+
function $mol_wire_auto(next?: $mol_wire_sub | null): $mol_wire_sub | null;
|
|
69
|
+
const $mol_wire_affected: (number | $mol_wire_sub)[];
|
|
38
70
|
}
|
|
39
71
|
|
|
40
|
-
|
|
41
|
-
|
|
72
|
+
declare namespace $ {
|
|
73
|
+
function $mol_dev_format_register(config: {
|
|
74
|
+
header: (val: any, config: any) => any;
|
|
75
|
+
hasBody: (val: any, config: any) => false;
|
|
76
|
+
} | {
|
|
77
|
+
header: (val: any, config: any) => any;
|
|
78
|
+
hasBody: (val: any, config: any) => boolean;
|
|
79
|
+
body: (val: any, config: any) => any;
|
|
80
|
+
}): void;
|
|
81
|
+
let $mol_dev_format_head: symbol;
|
|
82
|
+
let $mol_dev_format_body: symbol;
|
|
83
|
+
function $mol_dev_format_native(obj: any): any[];
|
|
84
|
+
function $mol_dev_format_auto(obj: any): any[];
|
|
85
|
+
function $mol_dev_format_element(element: string, style: object, ...content: any[]): any[];
|
|
86
|
+
function $mol_dev_format_span(style: object, ...content: any[]): any[];
|
|
87
|
+
let $mol_dev_format_div: (style: object, ...content: any[]) => any[];
|
|
88
|
+
let $mol_dev_format_ol: (style: object, ...content: any[]) => any[];
|
|
89
|
+
let $mol_dev_format_li: (style: object, ...content: any[]) => any[];
|
|
90
|
+
let $mol_dev_format_table: (style: object, ...content: any[]) => any[];
|
|
91
|
+
let $mol_dev_format_tr: (style: object, ...content: any[]) => any[];
|
|
92
|
+
let $mol_dev_format_td: (style: object, ...content: any[]) => any[];
|
|
93
|
+
let $mol_dev_format_accent: (...args: any[]) => any[];
|
|
94
|
+
let $mol_dev_format_strong: (...args: any[]) => any[];
|
|
95
|
+
let $mol_dev_format_string: (...args: any[]) => any[];
|
|
96
|
+
let $mol_dev_format_shade: (...args: any[]) => any[];
|
|
97
|
+
let $mol_dev_format_indent: (...args: any[]) => any[];
|
|
42
98
|
}
|
|
43
|
-
declare var $node: $node;
|
|
44
99
|
|
|
45
100
|
declare namespace $ {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
let $mol_log3_stack: (() => void)[];
|
|
101
|
+
class $mol_wire_pub_sub extends $mol_wire_pub implements $mol_wire_sub {
|
|
102
|
+
protected pub_from: number;
|
|
103
|
+
protected cursor: $mol_wire_cursor;
|
|
104
|
+
get temp(): boolean;
|
|
105
|
+
get pub_list(): $mol_wire_pub[];
|
|
106
|
+
track_on(): $mol_wire_sub | null;
|
|
107
|
+
promote(): void;
|
|
108
|
+
track_next(pub?: $mol_wire_pub): $mol_wire_pub | null;
|
|
109
|
+
track_off(sub: $mol_wire_sub | null): void;
|
|
110
|
+
pub_off(sub_pos: number): void;
|
|
111
|
+
destructor(): void;
|
|
112
|
+
track_cut(): void;
|
|
113
|
+
complete(): void;
|
|
114
|
+
complete_pubs(): void;
|
|
115
|
+
absorb(quant?: $mol_wire_cursor): void;
|
|
116
|
+
get pub_empty(): boolean;
|
|
117
|
+
}
|
|
64
118
|
}
|
|
65
119
|
|
|
66
120
|
declare namespace $ {
|
|
@@ -87,6 +141,10 @@ declare namespace $ {
|
|
|
87
141
|
function $mol_owning_catch<Owner, Having>(owner: Owner, having: Having): boolean;
|
|
88
142
|
}
|
|
89
143
|
|
|
144
|
+
declare namespace $ {
|
|
145
|
+
function $mol_fail_hidden(error: any): never;
|
|
146
|
+
}
|
|
147
|
+
|
|
90
148
|
declare namespace $ {
|
|
91
149
|
type $mol_type_writable<T> = {
|
|
92
150
|
-readonly [P in keyof T]: T[P];
|
|
@@ -115,6 +173,85 @@ declare namespace $ {
|
|
|
115
173
|
}
|
|
116
174
|
}
|
|
117
175
|
|
|
176
|
+
declare namespace $ {
|
|
177
|
+
class $mol_after_timeout extends $mol_object2 {
|
|
178
|
+
delay: number;
|
|
179
|
+
task: () => void;
|
|
180
|
+
id: any;
|
|
181
|
+
constructor(delay: number, task: () => void);
|
|
182
|
+
destructor(): void;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
declare namespace $ {
|
|
187
|
+
class $mol_after_frame extends $mol_after_timeout {
|
|
188
|
+
task: () => void;
|
|
189
|
+
constructor(task: () => void);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare namespace $ {
|
|
194
|
+
function $mol_promise_like(val: any): val is Promise<any>;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
declare namespace $ {
|
|
198
|
+
abstract class $mol_wire_fiber<Host, Args extends readonly unknown[], Result> extends $mol_wire_pub_sub {
|
|
199
|
+
readonly task: (this: Host, ...args: Args) => Result;
|
|
200
|
+
readonly host?: Host | undefined;
|
|
201
|
+
static warm: boolean;
|
|
202
|
+
static planning: Set<$mol_wire_fiber<any, any, any>>;
|
|
203
|
+
static reaping: Set<$mol_wire_fiber<any, any, any>>;
|
|
204
|
+
static plan_task: $mol_after_frame | null;
|
|
205
|
+
static plan(): void;
|
|
206
|
+
static sync(): void;
|
|
207
|
+
[Symbol.toStringTag]: string;
|
|
208
|
+
cache: Result | Error | Promise<Result | Error>;
|
|
209
|
+
get args(): Args;
|
|
210
|
+
result(): Result | undefined;
|
|
211
|
+
get incompleted(): boolean;
|
|
212
|
+
field(): string;
|
|
213
|
+
constructor(id: string, task: (this: Host, ...args: Args) => Result, host?: Host | undefined, args?: Args);
|
|
214
|
+
plan(): void;
|
|
215
|
+
reap(): void;
|
|
216
|
+
toString(): string;
|
|
217
|
+
toJSON(): string;
|
|
218
|
+
get $(): any;
|
|
219
|
+
emit(quant?: $mol_wire_cursor): void;
|
|
220
|
+
fresh(): void;
|
|
221
|
+
refresh(): void;
|
|
222
|
+
abstract put(next: Result | Error | Promise<Result | Error>): Result | Error | Promise<Result | Error>;
|
|
223
|
+
sync(): Awaited<Result>;
|
|
224
|
+
async(): Promise<Result>;
|
|
225
|
+
step(): Promise<null>;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
declare namespace $ {
|
|
230
|
+
let $mol_compare_deep_cache: WeakMap<any, WeakMap<any, boolean>>;
|
|
231
|
+
function $mol_compare_deep<Value>(left: Value, right: Value): boolean;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
declare namespace $ {
|
|
235
|
+
type $mol_log3_event<Fields> = {
|
|
236
|
+
[key in string]: unknown;
|
|
237
|
+
} & {
|
|
238
|
+
time?: string;
|
|
239
|
+
place: unknown;
|
|
240
|
+
message: string;
|
|
241
|
+
} & Fields;
|
|
242
|
+
type $mol_log3_logger<Fields, Res = void> = (this: $, event: $mol_log3_event<Fields>) => Res;
|
|
243
|
+
let $mol_log3_come: $mol_log3_logger<{}>;
|
|
244
|
+
let $mol_log3_done: $mol_log3_logger<{}>;
|
|
245
|
+
let $mol_log3_fail: $mol_log3_logger<{}>;
|
|
246
|
+
let $mol_log3_warn: $mol_log3_logger<{
|
|
247
|
+
hint: string;
|
|
248
|
+
}>;
|
|
249
|
+
let $mol_log3_rise: $mol_log3_logger<{}>;
|
|
250
|
+
let $mol_log3_area: $mol_log3_logger<{}, () => void>;
|
|
251
|
+
function $mol_log3_area_lazy(this: $, event: $mol_log3_event<{}>): () => void;
|
|
252
|
+
let $mol_log3_stack: (() => void)[];
|
|
253
|
+
}
|
|
254
|
+
|
|
118
255
|
declare namespace $ {
|
|
119
256
|
class $mol_span extends $mol_object2 {
|
|
120
257
|
readonly uri: string;
|
|
@@ -231,6 +368,40 @@ declare namespace $ {
|
|
|
231
368
|
function $mol_log3_node_make(level: keyof Console, output: 'stdout' | 'stderr', type: string, color: (str: string) => string): (this: $, event: $mol_log3_event<{}>) => () => void;
|
|
232
369
|
}
|
|
233
370
|
|
|
371
|
+
declare namespace $ {
|
|
372
|
+
class $mol_wire_task<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
|
|
373
|
+
static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result): (host: Host, args: Args) => $mol_wire_task<Host, Args, Result>;
|
|
374
|
+
get temp(): boolean;
|
|
375
|
+
complete(): void;
|
|
376
|
+
put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
declare namespace $ {
|
|
381
|
+
export function $mol_wire_sync<Host extends object>(obj: Host): ObjectOrFunctionResultAwaited<Host>;
|
|
382
|
+
type FunctionResultAwaited<Some> = Some extends (...args: infer Args) => infer Res ? (...args: Args) => Awaited<Res> : Some;
|
|
383
|
+
type MethodsResultAwaited<Host extends Object> = {
|
|
384
|
+
[K in keyof Host]: FunctionResultAwaited<Host[K]>;
|
|
385
|
+
};
|
|
386
|
+
type ObjectOrFunctionResultAwaited<Some> = (Some extends (...args: any) => unknown ? FunctionResultAwaited<Some> : {}) & (Some extends Object ? MethodsResultAwaited<Some> : Some);
|
|
387
|
+
export {};
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
declare namespace $ {
|
|
391
|
+
function $mol_fail_catch(error: unknown): boolean;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
declare namespace $ {
|
|
395
|
+
function $mol_fail_log(error: unknown): boolean;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
interface $node {
|
|
399
|
+
[key: string]: any;
|
|
400
|
+
}
|
|
401
|
+
declare var $node: $node;
|
|
402
|
+
declare const importAsync: (uri: string) => Promise<any>;
|
|
403
|
+
declare const importSync: ((uri: string) => any) & {};
|
|
404
|
+
|
|
234
405
|
declare namespace $ {
|
|
235
406
|
function $mol_env(): Record<string, string | undefined>;
|
|
236
407
|
}
|
|
@@ -296,82 +467,6 @@ declare namespace $ {
|
|
|
296
467
|
function $mol_jsx_attach<Result>(next: typeof $mol_jsx_document, action: () => Result): Result;
|
|
297
468
|
}
|
|
298
469
|
|
|
299
|
-
declare namespace $ {
|
|
300
|
-
enum $mol_wire_cursor {
|
|
301
|
-
stale = -1,
|
|
302
|
-
doubt = -2,
|
|
303
|
-
fresh = -3,
|
|
304
|
-
final = -4
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
declare namespace $ {
|
|
309
|
-
class $mol_wire_pub extends Object {
|
|
310
|
-
data: unknown[];
|
|
311
|
-
static get [Symbol.species](): ArrayConstructor;
|
|
312
|
-
protected sub_from: number;
|
|
313
|
-
get sub_list(): readonly $mol_wire_sub[];
|
|
314
|
-
get sub_empty(): boolean;
|
|
315
|
-
sub_on(sub: $mol_wire_pub, pub_pos: number): number;
|
|
316
|
-
sub_off(sub_pos: number): void;
|
|
317
|
-
reap(): void;
|
|
318
|
-
promote(): void;
|
|
319
|
-
fresh(): void;
|
|
320
|
-
complete(): void;
|
|
321
|
-
get incompleted(): boolean;
|
|
322
|
-
emit(quant?: $mol_wire_cursor): void;
|
|
323
|
-
peer_move(from_pos: number, to_pos: number): void;
|
|
324
|
-
peer_repos(peer_pos: number, self_pos: number): void;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
declare namespace $ {
|
|
329
|
-
interface $mol_wire_sub extends $mol_wire_pub {
|
|
330
|
-
temp: boolean;
|
|
331
|
-
track_on(): $mol_wire_sub | null;
|
|
332
|
-
track_next(pub?: $mol_wire_pub): $mol_wire_pub | null;
|
|
333
|
-
pub_off(pub_pos: number): void;
|
|
334
|
-
track_cut(sub: $mol_wire_pub | null): void;
|
|
335
|
-
track_off(sub: $mol_wire_pub | null): void;
|
|
336
|
-
absorb(quant: $mol_wire_cursor): void;
|
|
337
|
-
destructor(): void;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
declare namespace $ {
|
|
342
|
-
let $mol_wire_auto_sub: $mol_wire_sub | null;
|
|
343
|
-
function $mol_wire_auto(next?: $mol_wire_sub | null): $mol_wire_sub | null;
|
|
344
|
-
const $mol_wire_affected: (number | $mol_wire_sub)[];
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
declare namespace $ {
|
|
348
|
-
function $mol_dev_format_register(config: {
|
|
349
|
-
header: (val: any, config: any) => any;
|
|
350
|
-
hasBody: (val: any, config: any) => false;
|
|
351
|
-
} | {
|
|
352
|
-
header: (val: any, config: any) => any;
|
|
353
|
-
hasBody: (val: any, config: any) => boolean;
|
|
354
|
-
body: (val: any, config: any) => any;
|
|
355
|
-
}): void;
|
|
356
|
-
let $mol_dev_format_head: symbol;
|
|
357
|
-
let $mol_dev_format_body: symbol;
|
|
358
|
-
function $mol_dev_format_native(obj: any): any[];
|
|
359
|
-
function $mol_dev_format_auto(obj: any): any[];
|
|
360
|
-
function $mol_dev_format_element(element: string, style: object, ...content: any[]): any[];
|
|
361
|
-
function $mol_dev_format_span(style: object, ...content: any[]): any[];
|
|
362
|
-
let $mol_dev_format_div: (style: object, ...content: any[]) => any[];
|
|
363
|
-
let $mol_dev_format_ol: (style: object, ...content: any[]) => any[];
|
|
364
|
-
let $mol_dev_format_li: (style: object, ...content: any[]) => any[];
|
|
365
|
-
let $mol_dev_format_table: (style: object, ...content: any[]) => any[];
|
|
366
|
-
let $mol_dev_format_tr: (style: object, ...content: any[]) => any[];
|
|
367
|
-
let $mol_dev_format_td: (style: object, ...content: any[]) => any[];
|
|
368
|
-
let $mol_dev_format_accent: (...args: any[]) => any[];
|
|
369
|
-
let $mol_dev_format_strong: (...args: any[]) => any[];
|
|
370
|
-
let $mol_dev_format_string: (...args: any[]) => any[];
|
|
371
|
-
let $mol_dev_format_shade: (...args: any[]) => any[];
|
|
372
|
-
let $mol_dev_format_indent: (...args: any[]) => any[];
|
|
373
|
-
}
|
|
374
|
-
|
|
375
470
|
declare namespace $ {
|
|
376
471
|
function $mol_const<Value>(value: Value): {
|
|
377
472
|
(): Value;
|
|
@@ -379,75 +474,6 @@ declare namespace $ {
|
|
|
379
474
|
};
|
|
380
475
|
}
|
|
381
476
|
|
|
382
|
-
declare namespace $ {
|
|
383
|
-
class $mol_wire_pub_sub extends $mol_wire_pub implements $mol_wire_sub {
|
|
384
|
-
protected pub_from: number;
|
|
385
|
-
protected cursor: $mol_wire_cursor;
|
|
386
|
-
get temp(): boolean;
|
|
387
|
-
get pub_list(): $mol_wire_pub[];
|
|
388
|
-
track_on(): $mol_wire_sub | null;
|
|
389
|
-
promote(): void;
|
|
390
|
-
track_next(pub?: $mol_wire_pub): $mol_wire_pub | null;
|
|
391
|
-
track_off(sub: $mol_wire_sub | null): void;
|
|
392
|
-
pub_off(sub_pos: number): void;
|
|
393
|
-
destructor(): void;
|
|
394
|
-
track_cut(): void;
|
|
395
|
-
complete(): void;
|
|
396
|
-
complete_pubs(): void;
|
|
397
|
-
absorb(quant?: $mol_wire_cursor): void;
|
|
398
|
-
get pub_empty(): boolean;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
declare namespace $ {
|
|
403
|
-
class $mol_after_timeout extends $mol_object2 {
|
|
404
|
-
delay: number;
|
|
405
|
-
task: () => void;
|
|
406
|
-
id: any;
|
|
407
|
-
constructor(delay: number, task: () => void);
|
|
408
|
-
destructor(): void;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
declare namespace $ {
|
|
413
|
-
class $mol_after_frame extends $mol_after_timeout {
|
|
414
|
-
task: () => void;
|
|
415
|
-
constructor(task: () => void);
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
declare namespace $ {
|
|
420
|
-
abstract class $mol_wire_fiber<Host, Args extends readonly unknown[], Result> extends $mol_wire_pub_sub {
|
|
421
|
-
readonly task: (this: Host, ...args: Args) => Result;
|
|
422
|
-
readonly host?: Host | undefined;
|
|
423
|
-
static warm: boolean;
|
|
424
|
-
static planning: Set<$mol_wire_fiber<any, any, any>>;
|
|
425
|
-
static reaping: Set<$mol_wire_fiber<any, any, any>>;
|
|
426
|
-
static plan_task: $mol_after_frame | null;
|
|
427
|
-
static plan(): void;
|
|
428
|
-
static sync(): void;
|
|
429
|
-
[Symbol.toStringTag]: string;
|
|
430
|
-
cache: Result | Error | Promise<Result | Error>;
|
|
431
|
-
get args(): Args;
|
|
432
|
-
result(): Result | undefined;
|
|
433
|
-
get incompleted(): boolean;
|
|
434
|
-
field(): string;
|
|
435
|
-
constructor(id: string, task: (this: Host, ...args: Args) => Result, host?: Host | undefined, args?: Args);
|
|
436
|
-
plan(): void;
|
|
437
|
-
reap(): void;
|
|
438
|
-
toString(): string;
|
|
439
|
-
toJSON(): string;
|
|
440
|
-
get $(): any;
|
|
441
|
-
emit(quant?: $mol_wire_cursor): void;
|
|
442
|
-
fresh(): void;
|
|
443
|
-
refresh(): void;
|
|
444
|
-
abstract put(next: Result | Error | Promise<Result | Error>): Result | Error | Promise<Result | Error>;
|
|
445
|
-
sync(): Awaited<Result>;
|
|
446
|
-
async(): Promise<Result>;
|
|
447
|
-
step(): Promise<null>;
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
|
|
451
477
|
declare namespace $ {
|
|
452
478
|
function $mol_guid(length?: number, exists?: (id: string) => boolean): string;
|
|
453
479
|
}
|
|
@@ -457,20 +483,6 @@ declare namespace $ {
|
|
|
457
483
|
function $mol_key<Value>(value: Value): string;
|
|
458
484
|
}
|
|
459
485
|
|
|
460
|
-
declare namespace $ {
|
|
461
|
-
let $mol_compare_deep_cache: WeakMap<any, WeakMap<any, boolean>>;
|
|
462
|
-
function $mol_compare_deep<Value>(left: Value, right: Value): boolean;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
declare namespace $ {
|
|
466
|
-
class $mol_wire_task<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
|
|
467
|
-
static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result): (host: Host, args: Args) => $mol_wire_task<Host, Args, Result>;
|
|
468
|
-
get temp(): boolean;
|
|
469
|
-
complete(): void;
|
|
470
|
-
put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
|
|
474
486
|
declare namespace $ {
|
|
475
487
|
function $mol_wire_method<Host extends object, Args extends readonly any[]>(host: Host, field: PropertyKey, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
|
|
476
488
|
value: (this: Host, ...args: Args) => any;
|
|
@@ -558,16 +570,6 @@ declare namespace $ {
|
|
|
558
570
|
function $mol_wire_watch(): void;
|
|
559
571
|
}
|
|
560
572
|
|
|
561
|
-
declare namespace $ {
|
|
562
|
-
export function $mol_wire_sync<Host extends object>(obj: Host): ObjectOrFunctionResultAwaited<Host>;
|
|
563
|
-
type FunctionResultAwaited<Some> = Some extends (...args: infer Args) => infer Res ? (...args: Args) => Awaited<Res> : Some;
|
|
564
|
-
type MethodsResultAwaited<Host extends Object> = {
|
|
565
|
-
[K in keyof Host]: FunctionResultAwaited<Host[K]>;
|
|
566
|
-
};
|
|
567
|
-
type ObjectOrFunctionResultAwaited<Some> = (Some extends (...args: any) => unknown ? FunctionResultAwaited<Some> : {}) & (Some extends Object ? MethodsResultAwaited<Some> : Some);
|
|
568
|
-
export {};
|
|
569
|
-
}
|
|
570
|
-
|
|
571
573
|
declare namespace $ {
|
|
572
574
|
export function $mol_wire_async<Host extends object>(obj: Host): ObjectOrFunctionResultPromisify<Host>;
|
|
573
575
|
type FunctionResultPromisify<Some> = Some extends (...args: infer Args) => infer Res ? Res extends PromiseLike<unknown> ? Some : (...args: Args) => Promise<Res> : Some;
|
package/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../mam.d.ts","../../../dom/context/context.d.ts","../../../fail/fail.d.ts","../../../
|
|
1
|
+
{"version":3,"sources":["../../../../mam.d.ts","../../../dom/context/context.d.ts","../../../fail/fail.d.ts","../../../wire/cursor/cursor.d.ts","../../../wire/pub/pub.d.ts","../../../wire/sub/sub.d.ts","../../../wire/wire.d.ts","../../../dev/format/format.d.ts","../../../wire/pub/sub/sub.d.ts","../../../ambient/ambient.d.ts","../../../delegate/delegate.d.ts","../../../owning/owning.d.ts","../../../fail/hidden/hidden.d.ts","../../../type/writable/writable.d.ts","../../../func/name/name.d.ts","../../../object2/object2.d.ts","../../../after/timeout/timeout.d.ts","../../../after/frame/frame.node.d.ts","../../../promise/like/like.d.ts","../../../wire/fiber/fiber.d.ts","../../../compare/deep/deep.d.ts","../../../log3/log3.d.ts","../../../span/span.d.ts","../../../tree2/to/string/string.d.ts","../../../tree2/tree2.d.ts","../../../error/syntax/syntax.d.ts","../../../tree2/from/string/string.d.ts","../../../tree2/from/json/json.d.ts","../../../term/color/color.d.ts","../../../log3/log3.node.d.ts","../../../wire/task/task.d.ts","../../../wire/sync/sync.d.ts","../../../fail/catch/catch.d.ts","../../../fail/log/log.d.ts","../../../../node/node.node.d.ts","../../../env/env.d.ts","../../../env/env.node.d.ts","../../../exec/exec.node.d.ts","../../../dom/context/context.node.d.ts","../../../dom/render/children/children.d.ts","../../../type/partial/deep/deep.d.ts","../../jsx.d.ts","../../attach/attach.d.ts","../../../const/const.d.ts","../../../guid/guid.d.ts","../../../key/key.d.ts","../../../wire/method/method.d.ts","../../../type/tail/tail.d.ts","../../../type/foot/foot.d.ts","../../../wire/atom/atom.d.ts","../../../wire/field/field.d.ts","../../../wire/solo/solo.d.ts","../../../wire/plex/plex.d.ts","../../../mem/mem.d.ts","../../view/view.d.ts","../../../wire/probe/probe.d.ts","../../../wire/solid/solid.d.ts","../../../wire/watch/watch.d.ts","../../../wire/async/async.d.ts","../../../wire/race/race.d.ts","../../../object/object.d.ts","../../../state/time/time.d.ts","../../../wire/easing/easing.d.ts","../../../wire/patch/patch.d.ts","../../../type/result/result.d.ts","../../../wire/let/let.d.ts","../../../wire/set/set.d.ts","../../../wire/dict/dict.d.ts","../../../promise/promise/promise.d.ts","../../../wait/timeout/timeout.d.ts","../../../wire/log/log.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACdA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACZA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnBA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACbA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;AACA;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;ACNA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC/BA;AACA;AACA;AACA;AACA;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACzBA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACRA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC1BA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;ACNA;AACA;AACA;AACA;ACHA;AACA;AACA;ACFA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;ACFA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClCA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;ACNA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjBA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;AACA;AACA;AACA;AACA;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACXA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;ACNA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}
|