mol_wire_lib 1.0.1734 → 1.0.1736
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 +132 -0
- package/node.d.ts.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +530 -0
- package/web.d.ts.map +1 -1
package/node.d.ts
CHANGED
|
@@ -262,6 +262,131 @@ declare namespace $ {
|
|
|
262
262
|
let $mol_log3_stack: (() => void)[];
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
+
declare namespace $ {
|
|
266
|
+
class $mol_span extends $mol_object2 {
|
|
267
|
+
readonly uri: string;
|
|
268
|
+
readonly source: string;
|
|
269
|
+
readonly row: number;
|
|
270
|
+
readonly col: number;
|
|
271
|
+
readonly length: number;
|
|
272
|
+
constructor(uri: string, source: string, row: number, col: number, length: number);
|
|
273
|
+
static unknown: $mol_span;
|
|
274
|
+
static begin(uri: string, source?: string): $mol_span;
|
|
275
|
+
static end(uri: string, source: string): $mol_span;
|
|
276
|
+
static entire(uri: string, source: string): $mol_span;
|
|
277
|
+
toString(): string;
|
|
278
|
+
toJSON(): {
|
|
279
|
+
uri: string;
|
|
280
|
+
row: number;
|
|
281
|
+
col: number;
|
|
282
|
+
length: number;
|
|
283
|
+
};
|
|
284
|
+
error(message: string, Class?: ErrorConstructor): Error;
|
|
285
|
+
span(row: number, col: number, length: number): $mol_span;
|
|
286
|
+
after(length?: number): $mol_span;
|
|
287
|
+
slice(begin: number, end?: number): $mol_span;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare namespace $ {
|
|
292
|
+
function $mol_tree2_to_string(this: $, tree: $mol_tree2): string;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
declare namespace $ {
|
|
296
|
+
function $mol_maybe<Value>(value: Value | null | undefined): Value[];
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
declare namespace $ {
|
|
300
|
+
type $mol_tree2_path = Array<string | number | null>;
|
|
301
|
+
type $mol_tree2_hack<Context> = (input: $mol_tree2, belt: $mol_tree2_belt<Context>, context: Context) => readonly $mol_tree2[];
|
|
302
|
+
type $mol_tree2_belt<Context> = Record<string, $mol_tree2_hack<Context>>;
|
|
303
|
+
class $mol_tree2 extends Object {
|
|
304
|
+
readonly type: string;
|
|
305
|
+
readonly value: string;
|
|
306
|
+
readonly kids: readonly $mol_tree2[];
|
|
307
|
+
readonly span: $mol_span;
|
|
308
|
+
constructor(type: string, value: string, kids: readonly $mol_tree2[], span: $mol_span);
|
|
309
|
+
static list(kids: readonly $mol_tree2[], span?: $mol_span): $mol_tree2;
|
|
310
|
+
list(kids: readonly $mol_tree2[]): $mol_tree2;
|
|
311
|
+
static data(value: string, kids?: readonly $mol_tree2[], span?: $mol_span): $mol_tree2;
|
|
312
|
+
data(value: string, kids?: readonly $mol_tree2[]): $mol_tree2;
|
|
313
|
+
static struct(type: string, kids?: readonly $mol_tree2[], span?: $mol_span): $mol_tree2;
|
|
314
|
+
struct(type: string, kids?: readonly $mol_tree2[]): $mol_tree2;
|
|
315
|
+
clone(kids: readonly $mol_tree2[], span?: $mol_span): $mol_tree2;
|
|
316
|
+
text(): string;
|
|
317
|
+
static fromString(str: string, uri?: string): $mol_tree2;
|
|
318
|
+
toString(): string;
|
|
319
|
+
insert(value: $mol_tree2 | null, ...path: $mol_tree2_path): $mol_tree2;
|
|
320
|
+
update(value: readonly $mol_tree2[], ...path: $mol_tree2_path): readonly $mol_tree2[];
|
|
321
|
+
select(...path: $mol_tree2_path): $mol_tree2;
|
|
322
|
+
filter(path: string[], value?: string): $mol_tree2;
|
|
323
|
+
hack_self<Context extends {
|
|
324
|
+
span?: $mol_span;
|
|
325
|
+
[key: string]: unknown;
|
|
326
|
+
} = {}>(belt: $mol_tree2_belt<Context>, context?: Context): readonly $mol_tree2[];
|
|
327
|
+
hack<Context extends {
|
|
328
|
+
span?: $mol_span;
|
|
329
|
+
[key: string]: unknown;
|
|
330
|
+
} = {}>(belt: $mol_tree2_belt<Context>, context?: Context): $mol_tree2[];
|
|
331
|
+
error(message: string, Class?: ErrorConstructor): Error;
|
|
332
|
+
}
|
|
333
|
+
class $mol_tree2_empty extends $mol_tree2 {
|
|
334
|
+
constructor();
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
declare namespace $ {
|
|
339
|
+
class $mol_error_syntax extends SyntaxError {
|
|
340
|
+
reason: string;
|
|
341
|
+
line: string;
|
|
342
|
+
span: $mol_span;
|
|
343
|
+
constructor(reason: string, line: string, span: $mol_span);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
declare namespace $ {
|
|
348
|
+
function $mol_tree2_from_string(this: $, str: string, uri?: string): $mol_tree2;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
declare namespace $ {
|
|
352
|
+
function $mol_array_chunks<Item>(array: readonly Item[], rule: number | ((item: Item, index: number) => boolean)): Item[][];
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
declare namespace $ {
|
|
356
|
+
function $mol_tree2_from_json(json: any, span?: $mol_span): $mol_tree2;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
declare namespace $ {
|
|
360
|
+
class $mol_term_color {
|
|
361
|
+
static reset: (str: string) => string;
|
|
362
|
+
static bold: (str: string) => string;
|
|
363
|
+
static italic: (str: string) => string;
|
|
364
|
+
static underline: (str: string) => string;
|
|
365
|
+
static inverse: (str: string) => string;
|
|
366
|
+
static hidden: (str: string) => string;
|
|
367
|
+
static strike: (str: string) => string;
|
|
368
|
+
static gray: (str: string) => string;
|
|
369
|
+
static red: (str: string) => string;
|
|
370
|
+
static green: (str: string) => string;
|
|
371
|
+
static yellow: (str: string) => string;
|
|
372
|
+
static blue: (str: string) => string;
|
|
373
|
+
static magenta: (str: string) => string;
|
|
374
|
+
static cyan: (str: string) => string;
|
|
375
|
+
static Gray: (str: string) => string;
|
|
376
|
+
static Red: (str: string) => string;
|
|
377
|
+
static Green: (str: string) => string;
|
|
378
|
+
static Yellow: (str: string) => string;
|
|
379
|
+
static Blue: (str: string) => string;
|
|
380
|
+
static Magenta: (str: string) => string;
|
|
381
|
+
static Cyan: (str: string) => string;
|
|
382
|
+
static ansi(open: number, close: number): (str: string) => string;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
declare namespace $ {
|
|
387
|
+
function $mol_log3_node_make(level: keyof Console, output: 'stdout' | 'stderr', type: string, color: (str: string) => string): (this: $, event: $mol_log3_event<{}>) => () => void;
|
|
388
|
+
}
|
|
389
|
+
|
|
265
390
|
declare namespace $ {
|
|
266
391
|
class $mol_wire_task<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
|
|
267
392
|
static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result): (host: Host, args: Args) => $mol_wire_task<Host, Args, Result>;
|
|
@@ -286,6 +411,13 @@ declare namespace $ {
|
|
|
286
411
|
}
|
|
287
412
|
}
|
|
288
413
|
|
|
414
|
+
declare namespace $ {
|
|
415
|
+
class $mol_after_frame extends $mol_after_timeout {
|
|
416
|
+
task: () => void;
|
|
417
|
+
constructor(task: () => void);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
289
421
|
declare namespace $ {
|
|
290
422
|
function $mol_wire_method<Host extends object, Args extends readonly any[]>(host: Host, field: PropertyKey, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
|
|
291
423
|
value: (this: Host, ...args: Args) => any;
|
package/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../mam.d.ts","../../../guid/guid.d.ts","../../../fail/fail.d.ts","../../cursor/cursor.d.ts","../../pub/pub.d.ts","../../sub/sub.d.ts","../../wire.d.ts","../../../fail/hidden/hidden.d.ts","../../../dev/format/format.d.ts","../../pub/sub/sub.d.ts","../../../ambient/ambient.d.ts","../../../delegate/delegate.d.ts","../../../owning/owning.d.ts","../../../type/writable/writable.d.ts","../../../func/name/name.d.ts","../../../key/key.d.ts","../../../object2/object2.d.ts","../../../after/tick/tick.d.ts","../../../promise/like/like.d.ts","../../fiber/fiber.d.ts","../../../compare/deep/deep.d.ts","../../../log3/log3.d.ts","../../task/task.d.ts","../../../key/key/key.d.ts","../../../after/timeout/timeout.d.ts","../../method/method.d.ts","../../../type/tail/tail.d.ts","../../../type/foot/foot.d.ts","../../../fail/catch/catch.d.ts","../../../try/try.d.ts","../../../fail/log/log.d.ts","../../atom/atom.d.ts","../../probe/probe.d.ts","../../solid/solid.d.ts","../../watch/watch.d.ts","../../sync/sync.d.ts","../../async/async.d.ts","../../race/race.d.ts","../../solo/solo.d.ts","../../plex/plex.d.ts","../../../const/const.d.ts","../../field/field.d.ts","../../../object/object.d.ts","../../../mem/mem.d.ts","../../../state/time/time.d.ts","../../easing/easing.d.ts","../../patch/patch.d.ts","../../../type/result/result.d.ts","../../let/let.d.ts","../../set/set.d.ts","../../proxy/proxy.d.ts","../../dict/dict.d.ts","../../../promise/promise/promise.d.ts","../../../wait/timeout/timeout.d.ts","../../log/log.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACfA;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;AACA;AACA;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACbA;AACA;AACA;AACA;AACA;AACA;ACLA;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;AC3BA;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;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;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;ACpCA;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;ACTA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjBA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;ACNA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACPA;AACA;AACA;AACA;AACA;ACJA;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;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACPA;AACA;AACA;AACA;AACA;ACJA;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]}
|
|
1
|
+
{"version":3,"sources":["../../../../mam.d.ts","../../../guid/guid.d.ts","../../../fail/fail.d.ts","../../cursor/cursor.d.ts","../../pub/pub.d.ts","../../sub/sub.d.ts","../../wire.d.ts","../../../fail/hidden/hidden.d.ts","../../../dev/format/format.d.ts","../../pub/sub/sub.d.ts","../../../ambient/ambient.d.ts","../../../delegate/delegate.d.ts","../../../owning/owning.d.ts","../../../type/writable/writable.d.ts","../../../func/name/name.d.ts","../../../key/key.d.ts","../../../object2/object2.d.ts","../../../after/tick/tick.d.ts","../../../promise/like/like.d.ts","../../fiber/fiber.d.ts","../../../compare/deep/deep.d.ts","../../../log3/log3.d.ts","../../../span/span.d.ts","../../../tree2/to/string/string.d.ts","../../../maybe/maybe.d.ts","../../../tree2/tree2.d.ts","../../../error/syntax/syntax.d.ts","../../../tree2/from/string/string.d.ts","../../../array/chunks/chunks.d.ts","../../../tree2/from/json/json.d.ts","../../../term/color/color.d.ts","../../../log3/log3.node.d.ts","../../task/task.d.ts","../../../key/key/key.d.ts","../../../after/timeout/timeout.d.ts","../../../after/frame/frame.node.d.ts","../../method/method.d.ts","../../../type/tail/tail.d.ts","../../../type/foot/foot.d.ts","../../../fail/catch/catch.d.ts","../../../try/try.d.ts","../../../fail/log/log.d.ts","../../atom/atom.d.ts","../../probe/probe.d.ts","../../solid/solid.d.ts","../../watch/watch.d.ts","../../sync/sync.d.ts","../../async/async.d.ts","../../race/race.d.ts","../../solo/solo.d.ts","../../plex/plex.d.ts","../../../const/const.d.ts","../../field/field.d.ts","../../../object/object.d.ts","../../../mem/mem.d.ts","../../../state/time/time.d.ts","../../easing/easing.d.ts","../../patch/patch.d.ts","../../../type/result/result.d.ts","../../let/let.d.ts","../../set/set.d.ts","../../proxy/proxy.d.ts","../../dict/dict.d.ts","../../../promise/promise/promise.d.ts","../../../wait/timeout/timeout.d.ts","../../log/log.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACfA;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;AACA;AACA;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACbA;AACA;AACA;AACA;AACA;AACA;ACLA;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;AC3BA;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;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;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;ACpCA;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;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;AACA;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACRA;AACA;AACA;AACA;ACHA;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;AACA;ACTA;AACA;AACA;AACA;ACHA;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;ACVA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjBA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;ACNA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACPA;AACA;AACA;AACA;AACA;ACJA;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;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACPA;AACA;AACA;AACA;AACA;ACJA;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]}
|
package/package.json
CHANGED
package/web.d.ts
CHANGED
|
@@ -1,3 +1,533 @@
|
|
|
1
|
+
declare let _$_: {
|
|
2
|
+
new (): {};
|
|
3
|
+
} & typeof globalThis;
|
|
4
|
+
declare class $ extends _$_ {
|
|
5
|
+
}
|
|
6
|
+
declare namespace $ {
|
|
7
|
+
export type $ = typeof $$;
|
|
8
|
+
export class $$ extends $ {
|
|
9
|
+
static $: $;
|
|
10
|
+
}
|
|
11
|
+
namespace $$ {
|
|
12
|
+
type $$ = $;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare namespace $ {
|
|
18
|
+
function $mol_guid(length?: number, exists?: (id: string) => boolean): string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare namespace $ {
|
|
22
|
+
function $mol_fail(error: any): never;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare namespace $ {
|
|
26
|
+
enum $mol_wire_cursor {
|
|
27
|
+
stale = -1,
|
|
28
|
+
doubt = -2,
|
|
29
|
+
fresh = -3,
|
|
30
|
+
final = -4
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare namespace $ {
|
|
35
|
+
class $mol_wire_pub extends Object {
|
|
36
|
+
constructor(id?: string);
|
|
37
|
+
[Symbol.toStringTag]: string;
|
|
38
|
+
data: unknown[];
|
|
39
|
+
static get [Symbol.species](): ArrayConstructor;
|
|
40
|
+
protected sub_from: number;
|
|
41
|
+
get sub_list(): readonly $mol_wire_sub[];
|
|
42
|
+
get sub_empty(): boolean;
|
|
43
|
+
sub_on(sub: $mol_wire_pub, pub_pos: number): number;
|
|
44
|
+
sub_off(sub_pos: number): void;
|
|
45
|
+
reap(): void;
|
|
46
|
+
promote(): void;
|
|
47
|
+
fresh(): void;
|
|
48
|
+
complete(): void;
|
|
49
|
+
get incompleted(): boolean;
|
|
50
|
+
emit(quant?: $mol_wire_cursor): void;
|
|
51
|
+
peer_move(from_pos: number, to_pos: number): void;
|
|
52
|
+
peer_repos(peer_pos: number, self_pos: number): void;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare namespace $ {
|
|
57
|
+
interface $mol_wire_sub extends $mol_wire_pub {
|
|
58
|
+
temp: boolean;
|
|
59
|
+
pub_list: $mol_wire_pub[];
|
|
60
|
+
track_on(): $mol_wire_sub | null;
|
|
61
|
+
track_next(pub?: $mol_wire_pub): $mol_wire_pub | null;
|
|
62
|
+
pub_off(pub_pos: number): void;
|
|
63
|
+
track_cut(sub: $mol_wire_pub | null): void;
|
|
64
|
+
track_off(sub: $mol_wire_pub | null): void;
|
|
65
|
+
absorb(quant: $mol_wire_cursor, pos: number): void;
|
|
66
|
+
destructor(): void;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
declare namespace $ {
|
|
71
|
+
let $mol_wire_auto_sub: $mol_wire_sub | null;
|
|
72
|
+
function $mol_wire_auto(next?: $mol_wire_sub | null): $mol_wire_sub | null;
|
|
73
|
+
const $mol_wire_affected: ($mol_wire_sub | number)[];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare namespace $ {
|
|
77
|
+
function $mol_fail_hidden(error: any): never;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare namespace $ {
|
|
81
|
+
function $mol_dev_format_register(config: {
|
|
82
|
+
header: (val: any, config: any) => any;
|
|
83
|
+
hasBody: (val: any, config: any) => false;
|
|
84
|
+
} | {
|
|
85
|
+
header: (val: any, config: any) => any;
|
|
86
|
+
hasBody: (val: any, config: any) => boolean;
|
|
87
|
+
body: (val: any, config: any) => any;
|
|
88
|
+
}): void;
|
|
89
|
+
const $mol_dev_format_head: unique symbol;
|
|
90
|
+
const $mol_dev_format_body: unique symbol;
|
|
91
|
+
function $mol_dev_format_native(obj: any): any[];
|
|
92
|
+
function $mol_dev_format_auto(obj: any): any[];
|
|
93
|
+
function $mol_dev_format_element(element: string, style: object, ...content: any[]): any[];
|
|
94
|
+
let $mol_dev_format_span: (style: object, ...content: any[]) => any[];
|
|
95
|
+
let $mol_dev_format_div: (style: object, ...content: any[]) => any[];
|
|
96
|
+
let $mol_dev_format_ol: (style: object, ...content: any[]) => any[];
|
|
97
|
+
let $mol_dev_format_li: (style: object, ...content: any[]) => any[];
|
|
98
|
+
let $mol_dev_format_table: (style: object, ...content: any[]) => any[];
|
|
99
|
+
let $mol_dev_format_tr: (style: object, ...content: any[]) => any[];
|
|
100
|
+
let $mol_dev_format_td: (style: object, ...content: any[]) => any[];
|
|
101
|
+
let $mol_dev_format_accent: (...args: any[]) => any[];
|
|
102
|
+
let $mol_dev_format_strong: (...args: any[]) => any[];
|
|
103
|
+
let $mol_dev_format_string: (...args: any[]) => any[];
|
|
104
|
+
let $mol_dev_format_shade: (...args: any[]) => any[];
|
|
105
|
+
let $mol_dev_format_indent: (...args: any[]) => any[];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
declare namespace $ {
|
|
109
|
+
class $mol_wire_pub_sub extends $mol_wire_pub implements $mol_wire_sub {
|
|
110
|
+
protected pub_from: number;
|
|
111
|
+
protected cursor: $mol_wire_cursor;
|
|
112
|
+
get temp(): boolean;
|
|
113
|
+
get pub_list(): $mol_wire_pub[];
|
|
114
|
+
track_on(): $mol_wire_sub | null;
|
|
115
|
+
promote(): void;
|
|
116
|
+
track_next(pub?: $mol_wire_pub): $mol_wire_pub | null;
|
|
117
|
+
track_off(sub: $mol_wire_sub | null): void;
|
|
118
|
+
pub_off(sub_pos: number): void;
|
|
119
|
+
destructor(): void;
|
|
120
|
+
track_cut(): void;
|
|
121
|
+
complete(): void;
|
|
122
|
+
complete_pubs(): void;
|
|
123
|
+
absorb(quant?: $mol_wire_cursor, pos?: number): void;
|
|
124
|
+
[$mol_dev_format_head](): any[];
|
|
125
|
+
get pub_empty(): boolean;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
declare namespace $ {
|
|
130
|
+
const $mol_ambient_ref: unique symbol;
|
|
131
|
+
type $mol_ambient_context = $;
|
|
132
|
+
function $mol_ambient(this: $ | void, overrides: Partial<$>): $;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
declare namespace $ {
|
|
136
|
+
function $mol_delegate<Value extends object>(proto: Value, target: () => Value): Value;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
declare namespace $ {
|
|
140
|
+
const $mol_owning_map: WeakMap<any, any>;
|
|
141
|
+
function $mol_owning_allow<Having>(having: Having): having is Having & {
|
|
142
|
+
destructor(): void;
|
|
143
|
+
};
|
|
144
|
+
function $mol_owning_get<Having, Owner extends object>(having: Having, Owner?: {
|
|
145
|
+
new (): Owner;
|
|
146
|
+
}): Owner | null;
|
|
147
|
+
function $mol_owning_check<Owner, Having>(owner: Owner, having: Having): having is Having & {
|
|
148
|
+
destructor(): void;
|
|
149
|
+
};
|
|
150
|
+
function $mol_owning_catch<Owner, Having>(owner: Owner, having: Having): boolean;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
declare namespace $ {
|
|
154
|
+
type $mol_type_writable<T> = {
|
|
155
|
+
-readonly [P in keyof T]: T[P];
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
declare namespace $ {
|
|
160
|
+
function $mol_func_name(this: $, func: Function): string;
|
|
161
|
+
function $mol_func_name_from<Target extends Function>(target: Target, source: Function): Target;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
declare namespace $ {
|
|
165
|
+
const $mol_key_handle: unique symbol;
|
|
166
|
+
const $mol_key_store: WeakMap<object, string>;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
declare namespace $ {
|
|
170
|
+
class $mol_object2 {
|
|
171
|
+
static $: $;
|
|
172
|
+
[Symbol.toStringTag]: string;
|
|
173
|
+
[$mol_ambient_ref]: $;
|
|
174
|
+
get $(): $;
|
|
175
|
+
set $(next: $);
|
|
176
|
+
static create<Instance>(this: new (init?: (instance: any) => void) => Instance, init?: (instance: $mol_type_writable<Instance>) => void): Instance;
|
|
177
|
+
static [Symbol.toPrimitive](): any;
|
|
178
|
+
static toString(): any;
|
|
179
|
+
static toJSON(): any;
|
|
180
|
+
static [$mol_key_handle](): any;
|
|
181
|
+
destructor(): void;
|
|
182
|
+
static destructor(): void;
|
|
183
|
+
[Symbol.dispose](): void;
|
|
184
|
+
toString(): string;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
declare namespace $ {
|
|
189
|
+
class $mol_after_tick extends $mol_object2 {
|
|
190
|
+
task: () => void;
|
|
191
|
+
static promise: Promise<void> | null;
|
|
192
|
+
cancelled: boolean;
|
|
193
|
+
constructor(task: () => void);
|
|
194
|
+
destructor(): void;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
declare namespace $ {
|
|
199
|
+
function $mol_promise_like(val: any): val is Promise<any>;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare namespace $ {
|
|
203
|
+
abstract class $mol_wire_fiber<Host, Args extends readonly unknown[], Result> extends $mol_wire_pub_sub {
|
|
204
|
+
readonly task: (this: Host, ...args: Args) => Result;
|
|
205
|
+
readonly host?: Host | undefined;
|
|
206
|
+
static warm: boolean;
|
|
207
|
+
static planning: Set<$mol_wire_fiber<any, any, any>>;
|
|
208
|
+
static reaping: Set<$mol_wire_fiber<any, any, any>>;
|
|
209
|
+
static plan_task: $mol_after_tick | null;
|
|
210
|
+
static plan(): void;
|
|
211
|
+
static sync(): void;
|
|
212
|
+
cache: Result | Error | Promise<Result | Error>;
|
|
213
|
+
get args(): Args;
|
|
214
|
+
result(): Result | undefined;
|
|
215
|
+
get incompleted(): boolean;
|
|
216
|
+
field(): string;
|
|
217
|
+
constructor(id: string, task: (this: Host, ...args: Args) => Result, host?: Host | undefined, args?: Args);
|
|
218
|
+
plan(): this;
|
|
219
|
+
reap(): void;
|
|
220
|
+
toString(): string;
|
|
221
|
+
toJSON(): string;
|
|
222
|
+
[$mol_dev_format_head](): any[];
|
|
223
|
+
[$mol_dev_format_body](): null;
|
|
224
|
+
get $(): any;
|
|
225
|
+
emit(quant?: $mol_wire_cursor): void;
|
|
226
|
+
fresh(): this | undefined;
|
|
227
|
+
refresh(): void;
|
|
228
|
+
abstract put(next: Result | Error | Promise<Result | Error>): Result | Error | Promise<Result | Error>;
|
|
229
|
+
sync(): Awaited<Result>;
|
|
230
|
+
async_raw(): Promise<Result>;
|
|
231
|
+
async(): Promise<Result> & {
|
|
232
|
+
destructor(): void;
|
|
233
|
+
};
|
|
234
|
+
step(): Promise<null>;
|
|
235
|
+
destructor(): void;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
declare namespace $ {
|
|
240
|
+
let $mol_compare_deep_cache: WeakMap<any, WeakMap<any, boolean>>;
|
|
241
|
+
function $mol_compare_deep<Value>(left: Value, right: Value): boolean;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
declare namespace $ {
|
|
245
|
+
type $mol_log3_event<Fields> = {
|
|
246
|
+
[key in string]: unknown;
|
|
247
|
+
} & {
|
|
248
|
+
time?: string;
|
|
249
|
+
place: unknown;
|
|
250
|
+
message: string;
|
|
251
|
+
} & Fields;
|
|
252
|
+
type $mol_log3_logger<Fields, Res = void> = (this: $, event: $mol_log3_event<Fields>) => Res;
|
|
253
|
+
let $mol_log3_come: $mol_log3_logger<{}>;
|
|
254
|
+
let $mol_log3_done: $mol_log3_logger<{}>;
|
|
255
|
+
let $mol_log3_fail: $mol_log3_logger<{}>;
|
|
256
|
+
let $mol_log3_warn: $mol_log3_logger<{
|
|
257
|
+
hint: string;
|
|
258
|
+
}>;
|
|
259
|
+
let $mol_log3_rise: $mol_log3_logger<{}>;
|
|
260
|
+
let $mol_log3_area: $mol_log3_logger<{}, () => void>;
|
|
261
|
+
function $mol_log3_area_lazy(this: $, event: $mol_log3_event<{}>): () => void;
|
|
262
|
+
let $mol_log3_stack: (() => void)[];
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
declare namespace $ {
|
|
266
|
+
type $mol_type_keys_extract<Input, Upper, Lower = never> = {
|
|
267
|
+
[Field in keyof Input]: unknown extends Input[Field] ? never : Input[Field] extends never ? never : Input[Field] extends Upper ? [
|
|
268
|
+
Lower
|
|
269
|
+
] extends [Input[Field]] ? Field : never : never;
|
|
270
|
+
}[keyof Input];
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
declare namespace $ {
|
|
274
|
+
function $mol_log3_web_make(level: $mol_type_keys_extract<Console, Function>, color: string): (this: $, event: $mol_log3_event<{}>) => () => void;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
declare namespace $ {
|
|
278
|
+
class $mol_wire_task<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
|
|
279
|
+
static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result): (host: Host, args: Args) => $mol_wire_task<Host, Args, Result>;
|
|
280
|
+
get temp(): boolean;
|
|
281
|
+
complete(): void;
|
|
282
|
+
put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
|
|
283
|
+
destructor(): void;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
declare namespace $ {
|
|
288
|
+
function $mol_key<Value>(value: Value): string;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare namespace $ {
|
|
292
|
+
class $mol_after_frame extends $mol_object2 {
|
|
293
|
+
task: () => void;
|
|
294
|
+
static _promise: Promise<void> | null;
|
|
295
|
+
static get promise(): Promise<void>;
|
|
296
|
+
cancelled: boolean;
|
|
297
|
+
promise: Promise<void>;
|
|
298
|
+
constructor(task: () => void);
|
|
299
|
+
destructor(): void;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
declare namespace $ {
|
|
304
|
+
function $mol_wire_method<Host extends object, Args extends readonly any[]>(host: Host, field: PropertyKey, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
|
|
305
|
+
value: (this: Host, ...args: Args) => any;
|
|
306
|
+
enumerable?: boolean;
|
|
307
|
+
configurable?: boolean;
|
|
308
|
+
writable?: boolean;
|
|
309
|
+
get?: (() => (...args: Args) => any) | undefined;
|
|
310
|
+
set?: ((value: (...args: Args) => any) => void) | undefined;
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
declare namespace $ {
|
|
315
|
+
type $mol_type_tail<Tuple extends readonly any[]> = ((...tail: Tuple) => any) extends ((head: any, ...tail: infer Tail) => any) ? Tail : never;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
declare namespace $ {
|
|
319
|
+
type $mol_type_foot<Tuple extends readonly any[]> = Tuple['length'] extends 0 ? never : Tuple[$mol_type_tail<Tuple>['length']];
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
declare namespace $ {
|
|
323
|
+
function $mol_fail_catch(error: unknown): boolean;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
declare namespace $ {
|
|
327
|
+
function $mol_try<Result>(handler: () => Result): Result | Error;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
declare namespace $ {
|
|
331
|
+
function $mol_try_web<Result>(handler2: () => Result): Result | Error;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
declare namespace $ {
|
|
335
|
+
function $mol_fail_log(error: unknown): boolean;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
declare namespace $ {
|
|
339
|
+
class $mol_wire_atom<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
|
|
340
|
+
static solo<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result): $mol_wire_atom<Host, Args, Result>;
|
|
341
|
+
static plex<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result, key: Args[0]): $mol_wire_atom<Host, Args, Result>;
|
|
342
|
+
static watching: Set<$mol_wire_atom<any, any, any>>;
|
|
343
|
+
static watcher: $mol_after_frame | null;
|
|
344
|
+
static watch(): void;
|
|
345
|
+
watch(): void;
|
|
346
|
+
resync(args: Args): Error | Result | Promise<Error | Result>;
|
|
347
|
+
once(): Awaited<Result>;
|
|
348
|
+
channel(): ((next?: $mol_type_foot<Args>) => Awaited<Result>) & {
|
|
349
|
+
atom: $mol_wire_atom<Host, Args, Result>;
|
|
350
|
+
};
|
|
351
|
+
destructor(): void;
|
|
352
|
+
put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
declare namespace $ {
|
|
357
|
+
function $mol_wire_probe<Value>(task: () => Value, def?: Value): Value | undefined;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
declare namespace $ {
|
|
361
|
+
function $mol_wire_solid(): void;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
declare namespace $ {
|
|
365
|
+
function $mol_wire_watch(): void;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
declare namespace $ {
|
|
369
|
+
export function $mol_wire_sync<Host extends object>(obj: Host): ObjectOrFunctionResultAwaited<Host>;
|
|
370
|
+
type FunctionResultAwaited<Some> = Some extends (...args: infer Args) => infer Res ? (...args: Args) => Awaited<Res> : Some;
|
|
371
|
+
type ConstructorResultAwaited<Some> = Some extends new (...args: infer Args) => infer Res ? new (...args: Args) => Res : {};
|
|
372
|
+
type MethodsResultAwaited<Host extends Object> = {
|
|
373
|
+
[K in keyof Host]: FunctionResultAwaited<Host[K]>;
|
|
374
|
+
};
|
|
375
|
+
type ObjectOrFunctionResultAwaited<Some> = (Some extends (...args: any) => unknown ? FunctionResultAwaited<Some> : {}) & (Some extends Object ? MethodsResultAwaited<Some> & ConstructorResultAwaited<Some> : Some);
|
|
376
|
+
export {};
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
declare namespace $ {
|
|
380
|
+
export function $mol_wire_async<Host extends object>(obj: Host): ObjectOrFunctionResultPromisify<Host>;
|
|
381
|
+
type FunctionResultPromisify<Some> = Some extends (...args: infer Args) => infer Res ? Res extends PromiseLike<unknown> ? Some : (...args: Args) => Promise<Res> : Some;
|
|
382
|
+
type MethodsResultPromisify<Host extends Object> = {
|
|
383
|
+
[K in keyof Host]: FunctionResultPromisify<Host[K]>;
|
|
384
|
+
};
|
|
385
|
+
type ObjectOrFunctionResultPromisify<Some> = (Some extends (...args: any) => unknown ? FunctionResultPromisify<Some> : {}) & (Some extends Object ? MethodsResultPromisify<Some> : Some);
|
|
386
|
+
export {};
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
declare namespace $ {
|
|
390
|
+
function $mol_wire_race<Tasks extends ((...args: any) => any)[]>(...tasks: Tasks): {
|
|
391
|
+
[index in keyof Tasks]: ReturnType<Tasks[index]>;
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
declare namespace $ {
|
|
396
|
+
export function $mol_wire_solo<Args extends any[]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): TypedPropertyDescriptor<(...args: First_optional<Args>) => any>;
|
|
397
|
+
type First_optional<Args extends any[]> = Args extends [] ? [] : [Args[0] | undefined, ...$mol_type_tail<Args>];
|
|
398
|
+
export {};
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
declare namespace $ {
|
|
402
|
+
function $mol_wire_plex<Args extends [any, ...any[]]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
|
|
403
|
+
value: (this: typeof host, ...args: Args) => any;
|
|
404
|
+
enumerable?: boolean;
|
|
405
|
+
configurable?: boolean;
|
|
406
|
+
writable?: boolean;
|
|
407
|
+
get?: (() => (...args: Args) => any) | undefined;
|
|
408
|
+
set?: ((value: (...args: Args) => any) => void) | undefined;
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
declare namespace $ {
|
|
413
|
+
function $mol_const<Value>(value: Value): {
|
|
414
|
+
(): Value;
|
|
415
|
+
'()': Value;
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
declare namespace $ {
|
|
420
|
+
function $mol_wire_field<Host extends object, Field extends keyof Host, Value extends Host[Field]>(host: Host, field: Field, descr?: TypedPropertyDescriptor<Value>): any;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
declare namespace $ {
|
|
424
|
+
namespace $$ { }
|
|
425
|
+
const $mol_object_field: unique symbol;
|
|
426
|
+
class $mol_object extends $mol_object2 {
|
|
427
|
+
static make<This extends typeof $mol_object>(this: This, config: Partial<InstanceType<This>>): InstanceType<This>;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
declare namespace $ {
|
|
432
|
+
let $mol_mem: typeof $mol_wire_solo;
|
|
433
|
+
let $mol_mem_key: typeof $mol_wire_plex;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
declare namespace $ {
|
|
437
|
+
class $mol_after_timeout extends $mol_object2 {
|
|
438
|
+
delay: number;
|
|
439
|
+
task: () => void;
|
|
440
|
+
id: any;
|
|
441
|
+
constructor(delay: number, task: () => void);
|
|
442
|
+
destructor(): void;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
declare namespace $ {
|
|
447
|
+
class $mol_state_time extends $mol_object {
|
|
448
|
+
static task(precision: number, reset?: null): $mol_after_timeout | $mol_after_frame;
|
|
449
|
+
static now(precision: number): number;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
declare namespace $ {
|
|
454
|
+
function $mol_wire_easing(next: any): any;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
declare namespace $ {
|
|
458
|
+
function $mol_wire_patch(obj: object): void;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
declare namespace $ {
|
|
462
|
+
type $mol_type_result<Func> = Func extends (...params: any) => infer Result ? Result : Func extends new (...params: any) => infer Result ? Result : never;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
declare namespace $ {
|
|
466
|
+
function $mol_wire_let<Host extends {}>(host: Host): Host & { [Field in keyof Host]: {
|
|
467
|
+
atom: $mol_wire_atom<Host, Parameters<Extract<Host[Field], (...args: any[]) => any>>, $mol_type_result<Host[Field]>>;
|
|
468
|
+
}; };
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
declare namespace $ {
|
|
472
|
+
class $mol_wire_set<Value> extends Set<Value> {
|
|
473
|
+
pub: $mol_wire_pub;
|
|
474
|
+
has(value: Value): boolean;
|
|
475
|
+
entries(): SetIterator<[Value, Value]>;
|
|
476
|
+
keys(): SetIterator<Value>;
|
|
477
|
+
values(): SetIterator<Value>;
|
|
478
|
+
forEach(task: (value: Value, value2: Value, set: Set<Value>) => void, self?: any): void;
|
|
479
|
+
[Symbol.iterator](): SetIterator<Value>;
|
|
480
|
+
get size(): number;
|
|
481
|
+
add(value: Value): this;
|
|
482
|
+
delete(value: Value): boolean;
|
|
483
|
+
clear(): void;
|
|
484
|
+
item(val: Value, next?: boolean): boolean;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
declare namespace $ {
|
|
489
|
+
function $mol_wire_proxy_pub(id: string, target: object): $mol_wire_pub;
|
|
490
|
+
function $mol_wire_proxy<Target>(id: string, target: Target): Target;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
declare namespace $ {
|
|
494
|
+
class $mol_wire_dict<Key, Value> extends Map<Key, Value> {
|
|
495
|
+
pub: $mol_wire_pub;
|
|
496
|
+
has(key: Key): boolean;
|
|
497
|
+
get(key: Key): Value | undefined;
|
|
498
|
+
entries(): MapIterator<[Key, Value]>;
|
|
499
|
+
keys(): MapIterator<Key>;
|
|
500
|
+
values(): MapIterator<Value>;
|
|
501
|
+
forEach(task: (value: Value, key: Key, dict: Map<Key, Value>) => void, self?: any): void;
|
|
502
|
+
[Symbol.iterator](): MapIterator<[Key, Value]>;
|
|
503
|
+
get size(): number;
|
|
504
|
+
set(key: Key, value: Value): this;
|
|
505
|
+
delete(key: Key): boolean;
|
|
506
|
+
clear(): void;
|
|
507
|
+
item(key: Key, next?: Value | null): NonNullable<Value> | null;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
declare namespace $ {
|
|
512
|
+
class $mol_promise<Result = void> extends Promise<Result> {
|
|
513
|
+
done: (value: Result | PromiseLike<Result>) => void;
|
|
514
|
+
fail: (reason?: any) => void;
|
|
515
|
+
constructor(executor?: (done: (value: Result | PromiseLike<Result>) => void, fail: (reason?: any) => void) => void);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
declare namespace $ {
|
|
520
|
+
function $mol_wait_timeout_async(this: $, timeout: number): Promise<void>;
|
|
521
|
+
function $mol_wait_timeout(this: $, timeout: number): void;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
declare namespace $ {
|
|
525
|
+
class $mol_wire_log extends $mol_object2 {
|
|
526
|
+
static watch(task?: () => any): (() => any) | undefined;
|
|
527
|
+
static track(fiber: $mol_wire_fiber<any, any, any>): any;
|
|
528
|
+
static active(): void;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
1
531
|
|
|
2
532
|
export = $;
|
|
3
533
|
//# sourceMappingURL=web.d.ts.map
|
package/web.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
1
|
+
{"version":3,"sources":["../../../../mam.d.ts","../../../guid/guid.d.ts","../../../fail/fail.d.ts","../../cursor/cursor.d.ts","../../pub/pub.d.ts","../../sub/sub.d.ts","../../wire.d.ts","../../../fail/hidden/hidden.d.ts","../../../dev/format/format.d.ts","../../pub/sub/sub.d.ts","../../../ambient/ambient.d.ts","../../../delegate/delegate.d.ts","../../../owning/owning.d.ts","../../../type/writable/writable.d.ts","../../../func/name/name.d.ts","../../../key/key.d.ts","../../../object2/object2.d.ts","../../../after/tick/tick.d.ts","../../../promise/like/like.d.ts","../../fiber/fiber.d.ts","../../../compare/deep/deep.d.ts","../../../log3/log3.d.ts","../../../type/keys/extract/extract.d.ts","../../../log3/log3.web.d.ts","../../task/task.d.ts","../../../key/key/key.d.ts","../../../after/frame/frame.web.d.ts","../../method/method.d.ts","../../../type/tail/tail.d.ts","../../../type/foot/foot.d.ts","../../../fail/catch/catch.d.ts","../../../try/try.d.ts","../../../try/try.web.d.ts","../../../fail/log/log.d.ts","../../atom/atom.d.ts","../../probe/probe.d.ts","../../solid/solid.d.ts","../../watch/watch.d.ts","../../sync/sync.d.ts","../../async/async.d.ts","../../race/race.d.ts","../../solo/solo.d.ts","../../plex/plex.d.ts","../../../const/const.d.ts","../../field/field.d.ts","../../../object/object.d.ts","../../../mem/mem.d.ts","../../../after/timeout/timeout.d.ts","../../../state/time/time.d.ts","../../easing/easing.d.ts","../../patch/patch.d.ts","../../../type/result/result.d.ts","../../let/let.d.ts","../../set/set.d.ts","../../proxy/proxy.d.ts","../../dict/dict.d.ts","../../../promise/promise/promise.d.ts","../../../wait/timeout/timeout.d.ts","../../log/log.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACfA;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;AACA;AACA;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACbA;AACA;AACA;AACA;AACA;AACA;ACLA;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;AC3BA;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;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;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;ACpCA;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;ACPA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjBA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;ACNA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACPA;AACA;AACA;AACA;AACA;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;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;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACPA;AACA;AACA;AACA;AACA;ACJA;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]}
|