mol_wire_pub 1.0.1703 → 1.0.1705
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/package.json +1 -1
- package/web.d.ts +74 -0
- package/web.d.ts.map +1 -1
package/package.json
CHANGED
package/web.d.ts
CHANGED
|
@@ -1,3 +1,77 @@
|
|
|
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
|
+
}
|
|
1
75
|
|
|
2
76
|
export = $;
|
|
3
77
|
//# 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.d.ts","../../sub/sub.d.ts","../../wire.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","sourcesContent":[null,null,null,null,null,null,null]}
|