mol_jsx_lib 0.0.840 → 0.0.841
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 +195 -196
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +1270 -1268
- package/node.js.map +1 -1
- package/node.mjs +1270 -1268
- package/node.test.js +1846 -1844
- package/node.test.js.map +1 -1
- package/package.json +17 -17
package/node.d.ts
CHANGED
|
@@ -22,99 +22,46 @@ declare namespace $ {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
declare namespace $ {
|
|
25
|
-
|
|
26
|
-
stale = -1,
|
|
27
|
-
doubt = -2,
|
|
28
|
-
fresh = -3,
|
|
29
|
-
final = -4
|
|
30
|
-
}
|
|
25
|
+
function $mol_promise_like(val: any): val is Promise<any>;
|
|
31
26
|
}
|
|
32
27
|
|
|
33
28
|
declare namespace $ {
|
|
34
|
-
|
|
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
|
-
}
|
|
29
|
+
function $mol_fail_hidden(error: any): never;
|
|
51
30
|
}
|
|
52
31
|
|
|
53
32
|
declare namespace $ {
|
|
54
|
-
|
|
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
|
-
}
|
|
33
|
+
function $mol_fail_catch(error: unknown): boolean;
|
|
64
34
|
}
|
|
65
35
|
|
|
66
36
|
declare namespace $ {
|
|
67
|
-
|
|
68
|
-
function $mol_wire_auto(next?: $mol_wire_sub | null): $mol_wire_sub | null;
|
|
69
|
-
const $mol_wire_affected: (number | $mol_wire_sub)[];
|
|
37
|
+
function $mol_fail_log(error: unknown): boolean;
|
|
70
38
|
}
|
|
71
39
|
|
|
72
|
-
|
|
73
|
-
|
|
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[];
|
|
40
|
+
interface $node {
|
|
41
|
+
[key: string]: any;
|
|
98
42
|
}
|
|
43
|
+
declare var $node: $node;
|
|
44
|
+
declare const cache: Map<string, any>;
|
|
99
45
|
|
|
100
46
|
declare namespace $ {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
47
|
+
type $mol_log3_event<Fields> = {
|
|
48
|
+
[key in string]: unknown;
|
|
49
|
+
} & {
|
|
50
|
+
time?: string;
|
|
51
|
+
place: unknown;
|
|
52
|
+
message: string;
|
|
53
|
+
} & Fields;
|
|
54
|
+
type $mol_log3_logger<Fields, Res = void> = (this: $, event: $mol_log3_event<Fields>) => Res;
|
|
55
|
+
let $mol_log3_come: $mol_log3_logger<{}>;
|
|
56
|
+
let $mol_log3_done: $mol_log3_logger<{}>;
|
|
57
|
+
let $mol_log3_fail: $mol_log3_logger<{}>;
|
|
58
|
+
let $mol_log3_warn: $mol_log3_logger<{
|
|
59
|
+
hint: string;
|
|
60
|
+
}>;
|
|
61
|
+
let $mol_log3_rise: $mol_log3_logger<{}>;
|
|
62
|
+
let $mol_log3_area: $mol_log3_logger<{}, () => void>;
|
|
63
|
+
function $mol_log3_area_lazy(this: $, event: $mol_log3_event<{}>): () => void;
|
|
64
|
+
let $mol_log3_stack: (() => void)[];
|
|
118
65
|
}
|
|
119
66
|
|
|
120
67
|
declare namespace $ {
|
|
@@ -141,10 +88,6 @@ declare namespace $ {
|
|
|
141
88
|
function $mol_owning_catch<Owner, Having>(owner: Owner, having: Having): boolean;
|
|
142
89
|
}
|
|
143
90
|
|
|
144
|
-
declare namespace $ {
|
|
145
|
-
function $mol_fail_hidden(error: any): never;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
91
|
declare namespace $ {
|
|
149
92
|
type $mol_type_writable<T> = {
|
|
150
93
|
-readonly [P in keyof T]: T[P];
|
|
@@ -173,85 +116,6 @@ declare namespace $ {
|
|
|
173
116
|
}
|
|
174
117
|
}
|
|
175
118
|
|
|
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
|
-
|
|
255
119
|
declare namespace $ {
|
|
256
120
|
class $mol_span extends $mol_object2 {
|
|
257
121
|
readonly uri: string;
|
|
@@ -368,40 +232,6 @@ declare namespace $ {
|
|
|
368
232
|
function $mol_log3_node_make(level: keyof Console, output: 'stdout' | 'stderr', type: string, color: (str: string) => string): (this: $, event: $mol_log3_event<{}>) => () => void;
|
|
369
233
|
}
|
|
370
234
|
|
|
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
|
-
|
|
405
235
|
declare namespace $ {
|
|
406
236
|
function $mol_env(): Record<string, string | undefined>;
|
|
407
237
|
}
|
|
@@ -467,6 +297,82 @@ declare namespace $ {
|
|
|
467
297
|
function $mol_jsx_attach<Result>(next: typeof $mol_jsx_document, action: () => Result): Result;
|
|
468
298
|
}
|
|
469
299
|
|
|
300
|
+
declare namespace $ {
|
|
301
|
+
enum $mol_wire_cursor {
|
|
302
|
+
stale = -1,
|
|
303
|
+
doubt = -2,
|
|
304
|
+
fresh = -3,
|
|
305
|
+
final = -4
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
declare namespace $ {
|
|
310
|
+
class $mol_wire_pub extends Object {
|
|
311
|
+
data: unknown[];
|
|
312
|
+
static get [Symbol.species](): ArrayConstructor;
|
|
313
|
+
protected sub_from: number;
|
|
314
|
+
get sub_list(): readonly $mol_wire_sub[];
|
|
315
|
+
get sub_empty(): boolean;
|
|
316
|
+
sub_on(sub: $mol_wire_pub, pub_pos: number): number;
|
|
317
|
+
sub_off(sub_pos: number): void;
|
|
318
|
+
reap(): void;
|
|
319
|
+
promote(): void;
|
|
320
|
+
fresh(): void;
|
|
321
|
+
complete(): void;
|
|
322
|
+
get incompleted(): boolean;
|
|
323
|
+
emit(quant?: $mol_wire_cursor): void;
|
|
324
|
+
peer_move(from_pos: number, to_pos: number): void;
|
|
325
|
+
peer_repos(peer_pos: number, self_pos: number): void;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
declare namespace $ {
|
|
330
|
+
interface $mol_wire_sub extends $mol_wire_pub {
|
|
331
|
+
temp: boolean;
|
|
332
|
+
track_on(): $mol_wire_sub | null;
|
|
333
|
+
track_next(pub?: $mol_wire_pub): $mol_wire_pub | null;
|
|
334
|
+
pub_off(pub_pos: number): void;
|
|
335
|
+
track_cut(sub: $mol_wire_pub | null): void;
|
|
336
|
+
track_off(sub: $mol_wire_pub | null): void;
|
|
337
|
+
absorb(quant: $mol_wire_cursor): void;
|
|
338
|
+
destructor(): void;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
declare namespace $ {
|
|
343
|
+
let $mol_wire_auto_sub: $mol_wire_sub | null;
|
|
344
|
+
function $mol_wire_auto(next?: $mol_wire_sub | null): $mol_wire_sub | null;
|
|
345
|
+
const $mol_wire_affected: (number | $mol_wire_sub)[];
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
declare namespace $ {
|
|
349
|
+
function $mol_dev_format_register(config: {
|
|
350
|
+
header: (val: any, config: any) => any;
|
|
351
|
+
hasBody: (val: any, config: any) => false;
|
|
352
|
+
} | {
|
|
353
|
+
header: (val: any, config: any) => any;
|
|
354
|
+
hasBody: (val: any, config: any) => boolean;
|
|
355
|
+
body: (val: any, config: any) => any;
|
|
356
|
+
}): void;
|
|
357
|
+
let $mol_dev_format_head: symbol;
|
|
358
|
+
let $mol_dev_format_body: symbol;
|
|
359
|
+
function $mol_dev_format_native(obj: any): any[];
|
|
360
|
+
function $mol_dev_format_auto(obj: any): any[];
|
|
361
|
+
function $mol_dev_format_element(element: string, style: object, ...content: any[]): any[];
|
|
362
|
+
function $mol_dev_format_span(style: object, ...content: any[]): any[];
|
|
363
|
+
let $mol_dev_format_div: (style: object, ...content: any[]) => any[];
|
|
364
|
+
let $mol_dev_format_ol: (style: object, ...content: any[]) => any[];
|
|
365
|
+
let $mol_dev_format_li: (style: object, ...content: any[]) => any[];
|
|
366
|
+
let $mol_dev_format_table: (style: object, ...content: any[]) => any[];
|
|
367
|
+
let $mol_dev_format_tr: (style: object, ...content: any[]) => any[];
|
|
368
|
+
let $mol_dev_format_td: (style: object, ...content: any[]) => any[];
|
|
369
|
+
let $mol_dev_format_accent: (...args: any[]) => any[];
|
|
370
|
+
let $mol_dev_format_strong: (...args: any[]) => any[];
|
|
371
|
+
let $mol_dev_format_string: (...args: any[]) => any[];
|
|
372
|
+
let $mol_dev_format_shade: (...args: any[]) => any[];
|
|
373
|
+
let $mol_dev_format_indent: (...args: any[]) => any[];
|
|
374
|
+
}
|
|
375
|
+
|
|
470
376
|
declare namespace $ {
|
|
471
377
|
function $mol_const<Value>(value: Value): {
|
|
472
378
|
(): Value;
|
|
@@ -474,6 +380,75 @@ declare namespace $ {
|
|
|
474
380
|
};
|
|
475
381
|
}
|
|
476
382
|
|
|
383
|
+
declare namespace $ {
|
|
384
|
+
class $mol_wire_pub_sub extends $mol_wire_pub implements $mol_wire_sub {
|
|
385
|
+
protected pub_from: number;
|
|
386
|
+
protected cursor: $mol_wire_cursor;
|
|
387
|
+
get temp(): boolean;
|
|
388
|
+
get pub_list(): $mol_wire_pub[];
|
|
389
|
+
track_on(): $mol_wire_sub | null;
|
|
390
|
+
promote(): void;
|
|
391
|
+
track_next(pub?: $mol_wire_pub): $mol_wire_pub | null;
|
|
392
|
+
track_off(sub: $mol_wire_sub | null): void;
|
|
393
|
+
pub_off(sub_pos: number): void;
|
|
394
|
+
destructor(): void;
|
|
395
|
+
track_cut(): void;
|
|
396
|
+
complete(): void;
|
|
397
|
+
complete_pubs(): void;
|
|
398
|
+
absorb(quant?: $mol_wire_cursor): void;
|
|
399
|
+
get pub_empty(): boolean;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
declare namespace $ {
|
|
404
|
+
class $mol_after_timeout extends $mol_object2 {
|
|
405
|
+
delay: number;
|
|
406
|
+
task: () => void;
|
|
407
|
+
id: any;
|
|
408
|
+
constructor(delay: number, task: () => void);
|
|
409
|
+
destructor(): void;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
declare namespace $ {
|
|
414
|
+
class $mol_after_frame extends $mol_after_timeout {
|
|
415
|
+
task: () => void;
|
|
416
|
+
constructor(task: () => void);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
declare namespace $ {
|
|
421
|
+
abstract class $mol_wire_fiber<Host, Args extends readonly unknown[], Result> extends $mol_wire_pub_sub {
|
|
422
|
+
readonly task: (this: Host, ...args: Args) => Result;
|
|
423
|
+
readonly host?: Host | undefined;
|
|
424
|
+
static warm: boolean;
|
|
425
|
+
static planning: Set<$mol_wire_fiber<any, any, any>>;
|
|
426
|
+
static reaping: Set<$mol_wire_fiber<any, any, any>>;
|
|
427
|
+
static plan_task: $mol_after_frame | null;
|
|
428
|
+
static plan(): void;
|
|
429
|
+
static sync(): void;
|
|
430
|
+
[Symbol.toStringTag]: string;
|
|
431
|
+
cache: Result | Error | Promise<Result | Error>;
|
|
432
|
+
get args(): Args;
|
|
433
|
+
result(): Result | undefined;
|
|
434
|
+
get incompleted(): boolean;
|
|
435
|
+
field(): string;
|
|
436
|
+
constructor(id: string, task: (this: Host, ...args: Args) => Result, host?: Host | undefined, args?: Args);
|
|
437
|
+
plan(): void;
|
|
438
|
+
reap(): void;
|
|
439
|
+
toString(): string;
|
|
440
|
+
toJSON(): string;
|
|
441
|
+
get $(): any;
|
|
442
|
+
emit(quant?: $mol_wire_cursor): void;
|
|
443
|
+
fresh(): void;
|
|
444
|
+
refresh(): void;
|
|
445
|
+
abstract put(next: Result | Error | Promise<Result | Error>): Result | Error | Promise<Result | Error>;
|
|
446
|
+
sync(): Awaited<Result>;
|
|
447
|
+
async(): Promise<Result>;
|
|
448
|
+
step(): Promise<null>;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
477
452
|
declare namespace $ {
|
|
478
453
|
function $mol_guid(length?: number, exists?: (id: string) => boolean): string;
|
|
479
454
|
}
|
|
@@ -483,6 +458,20 @@ declare namespace $ {
|
|
|
483
458
|
function $mol_key<Value>(value: Value): string;
|
|
484
459
|
}
|
|
485
460
|
|
|
461
|
+
declare namespace $ {
|
|
462
|
+
let $mol_compare_deep_cache: WeakMap<any, WeakMap<any, boolean>>;
|
|
463
|
+
function $mol_compare_deep<Value>(left: Value, right: Value): boolean;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
declare namespace $ {
|
|
467
|
+
class $mol_wire_task<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
|
|
468
|
+
static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result): (host: Host, args: Args) => $mol_wire_task<Host, Args, Result>;
|
|
469
|
+
get temp(): boolean;
|
|
470
|
+
complete(): void;
|
|
471
|
+
put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
486
475
|
declare namespace $ {
|
|
487
476
|
function $mol_wire_method<Host extends object, Args extends readonly any[]>(host: Host, field: PropertyKey, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
|
|
488
477
|
value: (this: Host, ...args: Args) => any;
|
|
@@ -570,6 +559,16 @@ declare namespace $ {
|
|
|
570
559
|
function $mol_wire_watch(): void;
|
|
571
560
|
}
|
|
572
561
|
|
|
562
|
+
declare namespace $ {
|
|
563
|
+
export function $mol_wire_sync<Host extends object>(obj: Host): ObjectOrFunctionResultAwaited<Host>;
|
|
564
|
+
type FunctionResultAwaited<Some> = Some extends (...args: infer Args) => infer Res ? (...args: Args) => Awaited<Res> : Some;
|
|
565
|
+
type MethodsResultAwaited<Host extends Object> = {
|
|
566
|
+
[K in keyof Host]: FunctionResultAwaited<Host[K]>;
|
|
567
|
+
};
|
|
568
|
+
type ObjectOrFunctionResultAwaited<Some> = (Some extends (...args: any) => unknown ? FunctionResultAwaited<Some> : {}) & (Some extends Object ? MethodsResultAwaited<Some> : Some);
|
|
569
|
+
export {};
|
|
570
|
+
}
|
|
571
|
+
|
|
573
572
|
declare namespace $ {
|
|
574
573
|
export function $mol_wire_async<Host extends object>(obj: Host): ObjectOrFunctionResultPromisify<Host>;
|
|
575
574
|
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","../../../promise/like/like.d.ts","../../../fail/hidden/hidden.d.ts","../../../fail/catch/catch.d.ts","../../../fail/log/log.d.ts","../../../../node/node.node.d.ts","../../../log3/log3.d.ts","../../../ambient/ambient.d.ts","../../../delegate/delegate.d.ts","../../../owning/owning.d.ts","../../../type/writable/writable.d.ts","../../../func/name/name.d.ts","../../../object2/object2.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","../../../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","../../../wire/cursor/cursor.d.ts","../../../wire/pub/pub.d.ts","../../../wire/sub/sub.d.ts","../../../wire/wire.d.ts","../../../dev/format/format.d.ts","../../../const/const.d.ts","../../../wire/pub/sub/sub.d.ts","../../../after/timeout/timeout.d.ts","../../../after/frame/frame.node.d.ts","../../../wire/fiber/fiber.d.ts","../../../guid/guid.d.ts","../../../key/key.d.ts","../../../compare/deep/deep.d.ts","../../../wire/task/task.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/sync/sync.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;ACHA;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;AACA;AACA;AACA;AACA;ACpBA;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;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;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;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;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;ACNA;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;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;ACNA;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;ACHA;AACA;AACA;AACA;AACA;ACJA;AACA;AACA;AACA;AACA;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACRA;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;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]}
|