semantic-typescript 0.5.3 → 0.7.0

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/dist/guard.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import type { Collectable, OrderedCollectable, Statistics, UnorderedCollectable, WindowCollectable } from "./semantic";
2
- import type { Collector } from "./collector";
1
+ import type { AsynchronousCollector } from "./asynchronous/collector";
2
+ import type { AsynchronousBigIntStatistics, AsynchronousNumericStatistics, AsynchronousOrderedCollectable, AsynchronousSemantic, AsynchronousStatistics, AsynchronousUnorderedCollectable, AsynchronousWindowCollectable } from "./asynchronous/semantic";
3
3
  import type { Optional } from "./optional";
4
- import type { Semantic } from "./semantic";
4
+ import type { SynchronousCollector } from "./synchronous/collector";
5
+ import type { SynchronousBigIntStatistics, SynchronousNumericStatistics, SynchronousOrderedCollectable, SynchronousSemantic, SynchronousStatistics, SynchronousUnorderedCollectable, SynchronousWindowCollectable } from "./synchronous/semantic";
5
6
  import type { AsyncFunction, MaybePrimitive, Primitive } from "./utility";
6
7
  export declare let isBoolean: (target: unknown) => target is boolean;
7
8
  export declare let isString: (target: unknown) => target is string;
@@ -11,18 +12,27 @@ export declare let isObject: (target: unknown) => target is object;
11
12
  export declare let isSymbol: (target: unknown) => target is symbol;
12
13
  export declare let isBigInt: (target: unknown) => target is bigint;
13
14
  export declare let isPrimitive: (target: MaybePrimitive<unknown>) => target is Primitive;
14
- export declare let isAsyncIterable: (target: unknown) => target is Iterable<unknown>;
15
+ export declare let isAsyncIterable: (target: unknown) => target is AsyncIterable<unknown>;
15
16
  export declare let isIterable: (target: unknown) => target is Iterable<unknown>;
16
- export declare let isSemantic: (target: unknown) => target is Semantic<unknown>;
17
- export declare let isCollector: (target: unknown) => target is Collector<unknown, unknown, unknown>;
18
- export declare let isCollectable: (target: unknown) => target is Collectable<unknown>;
19
- export declare let isOrderedCollectable: (target: unknown) => target is OrderedCollectable<unknown>;
20
- export declare let isWindowCollectable: (target: unknown) => target is WindowCollectable<unknown>;
21
- export declare let isUnorderedCollectable: (target: unknown) => target is UnorderedCollectable<unknown>;
22
- export declare let isStatistics: (target: unknown) => target is Statistics<unknown, number | bigint>;
23
- export declare let isNumericStatistics: (target: unknown) => target is Statistics<unknown, number | bigint>;
24
- export declare let isBigIntStatistics: (target: unknown) => target is Statistics<unknown, number | bigint>;
25
- export declare let isOptional: <T>(target: unknown) => target is Optional<T>;
17
+ export declare let isAsynchronousSemantic: (target: unknown) => target is AsynchronousSemantic<unknown>;
18
+ export declare let isSynchronousSemantic: (target: unknown) => target is SynchronousSemantic<unknown>;
19
+ export declare let isAsynchronousCollectable: (target: unknown) => target is AsynchronousSemantic<unknown>;
20
+ export declare let isSynchronousCollectable: (target: unknown) => target is SynchronousSemantic<unknown>;
21
+ export declare let isAsynchronousOrderedCollectable: (target: unknown) => target is AsynchronousOrderedCollectable<unknown>;
22
+ export declare let isSynchronousOrderedCollectable: (target: unknown) => target is SynchronousOrderedCollectable<unknown>;
23
+ export declare let isAsynchronousUnorderedCollectable: (target: unknown) => target is AsynchronousUnorderedCollectable<unknown>;
24
+ export declare let isSynchronousUnorderedCollectable: (target: unknown) => target is SynchronousUnorderedCollectable<unknown>;
25
+ export declare let isAsynchronousStatistics: (target: unknown) => target is AsynchronousStatistics<unknown, number | bigint>;
26
+ export declare let isSynchronousStatistics: (target: unknown) => target is SynchronousStatistics<unknown, number | bigint>;
27
+ export declare let isAsynchronousBigIntStatistics: (target: unknown) => target is AsynchronousBigIntStatistics<unknown>;
28
+ export declare let isSynchronousBigIntStatistics: (target: unknown) => target is SynchronousBigIntStatistics<unknown>;
29
+ export declare let isAsynchronousNumericStatistics: (target: unknown) => target is AsynchronousNumericStatistics<unknown>;
30
+ export declare let isSynchronousNumericStatistics: (target: unknown) => target is SynchronousNumericStatistics<unknown>;
31
+ export declare let isAsynchronousWindowCollectable: (target: unknown) => target is AsynchronousWindowCollectable<unknown>;
32
+ export declare let isSynchronousWindowCollectable: (target: unknown) => target is SynchronousWindowCollectable<unknown>;
33
+ export declare let isSynchronousCollector: (target: unknown) => target is SynchronousCollector<unknown, unknown, unknown>;
34
+ export declare let isAsynchronousCollector: (target: unknown) => target is AsynchronousCollector<unknown, unknown, unknown>;
35
+ export declare let isOptional: (target: unknown) => target is Optional<unknown>;
26
36
  export declare let isPromise: (target: unknown) => target is Promise<unknown>;
27
37
  export declare let isAsyncFunction: (target: unknown) => target is AsyncFunction;
28
38
  export declare let isGeneratorFunction: (target: unknown) => target is Generator<unknown, unknown, unknown>;
package/dist/guard.js CHANGED
@@ -1,4 +1,4 @@
1
- import { BigIntStatisticsSymbol, CollectableSymbol, CollectorsSymbol, NumericStatisticsSymbol, OptionalSymbol, OrderedCollectableSymbol, SemanticSymbol, StatisticsSymbol, UnorderedCollectableSymbol, WindowCollectableSymbol } from "./symbol";
1
+ import { AsynchronousBigIntStatisticsSymbol, AsynchronousCollectorSymbol, AsynchronousNumericStatisticsSymbol, AsynchronousOrderedCollectableSymbol, AsynchronousSemanticSymbol, AsynchronousStatisticsSymbol, AsynchronousUnorderedCollectableSymbol, AsynchronousWindowCollectableSymbol, OptionalSymbol, SynchronousBigIntStatisticsSymbol, SynchronousCollectorSymbol, SynchronousNumericStatisticsSymbol, SynchronousOrderedCollectableSymbol, SynchronousSemanticSymbol, SynchronousStatisticsSymbol, SynchronousUnorderedCollectableSymbol, SynchronousWindowCollectableSymbol } from "./symbol";
2
2
  export let isBoolean = (target) => {
3
3
  return typeof target === "boolean";
4
4
  };
@@ -35,57 +35,111 @@ export let isIterable = (target) => {
35
35
  }
36
36
  return false;
37
37
  };
38
- export let isSemantic = (target) => {
38
+ export let isAsynchronousSemantic = (target) => {
39
39
  if (isObject(target)) {
40
- return Reflect.get(target, "Semantic") === SemanticSymbol;
40
+ return Reflect.get(target, "AsynchronousSemantic") === AsynchronousSemanticSymbol;
41
41
  }
42
42
  return false;
43
43
  };
44
- export let isCollector = (target) => {
44
+ export let isSynchronousSemantic = (target) => {
45
45
  if (isObject(target)) {
46
- return Reflect.get(target, "Collector") === CollectorsSymbol;
46
+ return Reflect.get(target, "SynchronousSemantic") === SynchronousSemanticSymbol;
47
47
  }
48
48
  return false;
49
49
  };
50
- export let isCollectable = (target) => {
50
+ export let isAsynchronousCollectable = (target) => {
51
51
  if (isObject(target)) {
52
- return Reflect.get(target, "Collectable") === CollectableSymbol;
52
+ return Reflect.get(target, "AsynchronousCollectable") === AsynchronousSemanticSymbol || isAsynchronousSemantic(target) || isAsynchronousOrderedCollectable(target) || isAsynchronousUnorderedCollectable(target) || isAsynchronousStatistics(target) || isAsynchronousNumericStatistics(target) || isAsynchronousBigIntStatistics(target) || isAsynchronousWindowCollectable(target);
53
53
  }
54
54
  return false;
55
55
  };
56
- export let isOrderedCollectable = (target) => {
56
+ export let isSynchronousCollectable = (target) => {
57
57
  if (isObject(target)) {
58
- return Reflect.get(target, "OrderedCollectable") === OrderedCollectableSymbol;
58
+ return Reflect.get(target, "SynchronousCollectable") === SynchronousSemanticSymbol || isSynchronousSemantic(target) || isSynchronousOrderedCollectable(target) || isSynchronousUnorderedCollectable(target) || isSynchronousStatistics(target) || isSynchronousNumericStatistics(target) || isSynchronousBigIntStatistics(target) || isSynchronousWindowCollectable(target);
59
59
  }
60
60
  return false;
61
61
  };
62
- export let isWindowCollectable = (target) => {
62
+ export let isAsynchronousOrderedCollectable = (target) => {
63
63
  if (isObject(target)) {
64
- return Reflect.get(target, "WindowCollectable") === WindowCollectableSymbol;
64
+ return Reflect.get(target, "AsynchronousOrderedCollectable") === AsynchronousOrderedCollectableSymbol;
65
65
  }
66
66
  return false;
67
67
  };
68
- export let isUnorderedCollectable = (target) => {
68
+ export let isSynchronousOrderedCollectable = (target) => {
69
69
  if (isObject(target)) {
70
- return Reflect.get(target, "UnorderedCollectable") === UnorderedCollectableSymbol;
70
+ return Reflect.get(target, "SynchronousOrderedCollectable") === SynchronousOrderedCollectableSymbol;
71
71
  }
72
72
  return false;
73
73
  };
74
- export let isStatistics = (target) => {
74
+ export let isAsynchronousUnorderedCollectable = (target) => {
75
75
  if (isObject(target)) {
76
- return Reflect.get(target, "Statistics") === StatisticsSymbol;
76
+ return Reflect.get(target, "AsynchronousUnorderedCollectable") === AsynchronousUnorderedCollectableSymbol;
77
77
  }
78
78
  return false;
79
79
  };
80
- export let isNumericStatistics = (target) => {
80
+ export let isSynchronousUnorderedCollectable = (target) => {
81
81
  if (isObject(target)) {
82
- return Reflect.get(target, "NumericStatistics") === NumericStatisticsSymbol;
82
+ return Reflect.get(target, "SynchronousUnorderedCollectable") === SynchronousUnorderedCollectableSymbol;
83
83
  }
84
84
  return false;
85
85
  };
86
- export let isBigIntStatistics = (target) => {
86
+ export let isAsynchronousStatistics = (target) => {
87
87
  if (isObject(target)) {
88
- return Reflect.get(target, "BigIntStatistics") === BigIntStatisticsSymbol;
88
+ return Reflect.get(target, "AsynchronousStatistics") === AsynchronousStatisticsSymbol;
89
+ }
90
+ return false;
91
+ };
92
+ export let isSynchronousStatistics = (target) => {
93
+ if (isObject(target)) {
94
+ return Reflect.get(target, "SynchronousStatistics") === SynchronousStatisticsSymbol;
95
+ }
96
+ return false;
97
+ };
98
+ export let isAsynchronousBigIntStatistics = (target) => {
99
+ if (isObject(target)) {
100
+ return Reflect.get(target, "AsynchronousBigIntStatistics") === AsynchronousBigIntStatisticsSymbol;
101
+ }
102
+ return false;
103
+ };
104
+ export let isSynchronousBigIntStatistics = (target) => {
105
+ if (isObject(target)) {
106
+ return Reflect.get(target, "SynchronousBigIntStatistics") === SynchronousBigIntStatisticsSymbol;
107
+ }
108
+ return false;
109
+ };
110
+ export let isAsynchronousNumericStatistics = (target) => {
111
+ if (isObject(target)) {
112
+ return Reflect.get(target, "AsynchronousBigIntStatistics") === AsynchronousNumericStatisticsSymbol;
113
+ }
114
+ return false;
115
+ };
116
+ export let isSynchronousNumericStatistics = (target) => {
117
+ if (isObject(target)) {
118
+ return Reflect.get(target, "AsynchronousNumericStatistics") === SynchronousNumericStatisticsSymbol;
119
+ }
120
+ return false;
121
+ };
122
+ export let isAsynchronousWindowCollectable = (target) => {
123
+ if (isObject(target)) {
124
+ return Reflect.get(target, "AsynchronousWindowCollectable") === AsynchronousWindowCollectableSymbol;
125
+ }
126
+ return false;
127
+ };
128
+ export let isSynchronousWindowCollectable = (target) => {
129
+ if (isObject(target)) {
130
+ return Reflect.get(target, "SynchronousWindowCollectable") === SynchronousWindowCollectableSymbol;
131
+ }
132
+ return false;
133
+ };
134
+ export let isSynchronousCollector = (target) => {
135
+ if (isObject(target)) {
136
+ return Reflect.get(target, "SynchronousCollector") === SynchronousCollectorSymbol;
137
+ }
138
+ return false;
139
+ };
140
+ export let isAsynchronousCollector = (target) => {
141
+ if (isObject(target)) {
142
+ return Reflect.get(target, "AsynchronousCollector") === AsynchronousCollectorSymbol;
89
143
  }
90
144
  return false;
91
145
  };
package/dist/hook.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type DeepPropertyKey, type DeepPropertyValue } from "./utility";
2
- import type { Comparator, Generator } from "./utility";
2
+ import type { BiFunctional, Comparator, SynchronousGenerator } from "./utility";
3
3
  export declare let useCompare: <T>(t1: T, t2: T) => number;
4
4
  interface UseRandom {
5
5
  <N extends number | bigint>(start: N): N extends number ? number : (N extends bigint ? bigint : never);
@@ -20,14 +20,19 @@ interface UseTraverse {
20
20
  <T extends object>(t: T, callback: UseTraversePathCallback<T>): void;
21
21
  }
22
22
  export declare let useTraverse: UseTraverse;
23
- export declare let useGenerator: <E>(iterable: Iterable<E>) => Generator<E>;
23
+ export declare let useGenerator: <E>(iterable: Iterable<E>) => SynchronousGenerator<E>;
24
24
  interface UseArrange {
25
- <E>(source: Iterable<E>): Generator<E>;
26
- <E>(source: Iterable<E>, comparator: Comparator<E>): Generator<E>;
27
- <E>(source: Generator<E>): Generator<E>;
28
- <E>(source: Generator<E>, comparator: Comparator<E>): Generator<E>;
25
+ <E>(source: Iterable<E>): SynchronousGenerator<E>;
26
+ <E>(source: Iterable<E>, comparator: Comparator<E>): SynchronousGenerator<E>;
27
+ <E>(source: SynchronousGenerator<E>): SynchronousGenerator<E>;
28
+ <E>(source: SynchronousGenerator<E>, comparator: Comparator<E>): SynchronousGenerator<E>;
29
29
  }
30
30
  export declare let useArrange: UseArrange;
31
31
  export declare let useToNumber: <T = unknown>(target: T) => number;
32
32
  export declare let useToBigInt: <T = unknown>(target: T) => bigint;
33
+ interface UseStringify {
34
+ <T extends object>(target: T): string;
35
+ <T extends object, K extends DeepPropertyKey<T>, V extends DeepPropertyValue<T>>(target: T, callback: BiFunctional<K, V, string>): string;
36
+ }
37
+ export declare let useStringify: UseStringify;
33
38
  export {};
package/dist/hook.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useToArray } from "./collector";
1
+ import { useSynchronousToArray } from "./synchronous/collector";
2
2
  import { isBigInt, isFunction, isIterable, isNumber, isObject, isPrimitive } from "./guard";
3
3
  import { invalidate, validate } from "./utility";
4
4
  export let useCompare = (t1, t2) => {
@@ -210,7 +210,7 @@ export let useArrange = (source, comparator) => {
210
210
  }
211
211
  }
212
212
  else if (isFunction(source)) {
213
- let collector = useToArray();
213
+ let collector = useSynchronousToArray();
214
214
  let buffer = collector.collect(source);
215
215
  if (validate(comparator) && isFunction(comparator)) {
216
216
  return useGenerator(buffer.sort(comparator));
@@ -246,7 +246,7 @@ export let useToNumber = (target) => {
246
246
  return 0;
247
247
  }
248
248
  if (Reflect.has(target, Symbol.toPrimitive)) {
249
- let resolved = Reflect.apply(Reflect.get(target, Symbol.toPrimitive), target, ["default"]);
249
+ let resolved = Reflect.apply(Reflect.get(target, Symbol.toPrimitive), target, ["number"]);
250
250
  return isNumber(resolved) ? resolved : 0;
251
251
  }
252
252
  return 0;
@@ -257,7 +257,7 @@ export let useToNumber = (target) => {
257
257
  export let useToBigInt = (target) => {
258
258
  switch (typeof target) {
259
259
  case "number":
260
- return isNumber(target) ? BigInt(target) : 0n;
260
+ return isNumber(target) ? BigInt(Math.floor(target)) : 0n;
261
261
  case "boolean":
262
262
  return target ? 1n : 0n;
263
263
  case "string":
@@ -270,7 +270,7 @@ export let useToBigInt = (target) => {
270
270
  return 0n;
271
271
  }
272
272
  if (Reflect.has(target, Symbol.toPrimitive)) {
273
- let resolved = Reflect.apply(Reflect.get(target, Symbol.toPrimitive), target, ["default"]);
273
+ let resolved = Reflect.apply(Reflect.get(target, Symbol.toPrimitive), target, ["bigint"]);
274
274
  return isBigInt(resolved) ? resolved : 0n;
275
275
  }
276
276
  return 0n;
@@ -278,3 +278,20 @@ export let useToBigInt = (target) => {
278
278
  return 0n;
279
279
  }
280
280
  };
281
+ ;
282
+ export let useStringify = (target, callback) => {
283
+ let seen = new WeakSet();
284
+ let resolve = isFunction(callback) ? callback : (_key, value) => {
285
+ return JSON.stringify(value);
286
+ };
287
+ return JSON.stringify(target, (key, value) => {
288
+ if (isObject(value)) {
289
+ if (seen.has(value)) {
290
+ return (void 0);
291
+ }
292
+ seen.add(value);
293
+ return resolve(key, value);
294
+ }
295
+ return resolve(key, value);
296
+ });
297
+ };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from "./collector";
1
+ export * from "./asynchronous/collector";
2
+ export * from "./synchronous/collector";
2
3
  export * from "./factory";
3
4
  export * from "./guard";
4
5
  export * from "./hook";
5
6
  export * from "./optional";
6
- export * from "./semantic";
7
7
  export * from "./symbol";
8
8
  export * from "./utility";
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export * from "./collector";
1
+ export * from "./asynchronous/collector";
2
+ export * from "./synchronous/collector";
2
3
  export * from "./factory";
3
4
  export * from "./guard";
4
5
  export * from "./hook";
5
6
  export * from "./optional";
6
- export * from "./semantic";
7
7
  export * from "./symbol";
8
8
  export * from "./utility";
package/dist/main.js CHANGED
@@ -1,4 +1,6 @@
1
- import { useWindow } from 'semantic-typescript';
2
- useWindow("click").toEvent().forEach((event, index) => {
3
- console.log(event.type + `第${index}次触发`);
4
- });
1
+ import { useHTMLElement } from "./factory";
2
+ let input = document.createElement("input");
3
+ input.type = "text";
4
+ input.placeholder = "Enter your name";
5
+ document.body.appendChild(input);
6
+ useHTMLElement(input, ["click", "change"]).peek(console.log).limit(5).toUnordered().log();
@@ -1,4 +1,4 @@
1
- import type { Semantic } from "./semantic";
1
+ import type { SynchronousSemantic } from "./synchronous/semantic";
2
2
  import { type Consumer, type Functional, type MaybeInvalid, type Predicate, type Runnable, type Valid } from "./utility";
3
3
  export declare class Optional<T> {
4
4
  protected value: MaybeInvalid<T>;
@@ -15,7 +15,7 @@ export declare class Optional<T> {
15
15
  flat(mapper: Functional<T, Optional<T>>): Optional<T>;
16
16
  flatMap<R>(mapper: Functional<T, Optional<R>>): Optional<R>;
17
17
  orElse(other: MaybeInvalid<T>): MaybeInvalid<T>;
18
- semantic(): Semantic<T>;
18
+ semantic(): SynchronousSemantic<T>;
19
19
  static empty<T>(): Optional<T>;
20
20
  static of<T>(value: MaybeInvalid<T>): Optional<T>;
21
21
  static ofNullable<T>(value?: MaybeInvalid<T>): Optional<T>;
package/dist/symbol.d.ts CHANGED
@@ -1,11 +1,20 @@
1
1
  export declare let OptionalSymbol: symbol;
2
- export declare let SemanticSymbol: symbol;
3
- export declare let CollectorsSymbol: symbol;
4
- export declare let CollectableSymbol: symbol;
5
- export declare let OrderedCollectableSymbol: symbol;
6
- export declare let WindowCollectableSymbol: symbol;
7
- export declare let StatisticsSymbol: symbol;
8
- export declare let NumericStatisticsSymbol: symbol;
9
- export declare let BigIntStatisticsSymbol: symbol;
10
- export declare let AsyncCollectableSymbol: symbol;
11
- export declare let UnorderedCollectableSymbol: symbol;
2
+ export declare let AsynchronousSemanticSymbol: symbol;
3
+ export declare let SynchronousSemanticSymbol: symbol;
4
+ export declare let AsynchronousCollectorSymbol: symbol;
5
+ export declare let SynchronousCollectorSymbol: symbol;
6
+ export declare let DispatchCollectableSymbol: symbol;
7
+ export declare let AsynchronousCollectableSymbol: symbol;
8
+ export declare let SynchronousCollectableSymbol: symbol;
9
+ export declare let AsynchronousOrderedCollectableSymbol: symbol;
10
+ export declare let SynchronousOrderedCollectableSymbol: symbol;
11
+ export declare let AsynchronousUnorderedCollectableSymbol: symbol;
12
+ export declare let SynchronousUnorderedCollectableSymbol: symbol;
13
+ export declare let AsynchronousWindowCollectableSymbol: symbol;
14
+ export declare let SynchronousWindowCollectableSymbol: symbol;
15
+ export declare let AsynchronousStatisticsSymbol: symbol;
16
+ export declare let SynchronousStatisticsSymbol: symbol;
17
+ export declare let AsynchronousNumericStatisticsSymbol: symbol;
18
+ export declare let SynchronousNumericStatisticsSymbol: symbol;
19
+ export declare let AsynchronousBigIntStatisticsSymbol: symbol;
20
+ export declare let SynchronousBigIntStatisticsSymbol: symbol;
package/dist/symbol.js CHANGED
@@ -1,11 +1,20 @@
1
1
  export let OptionalSymbol = Symbol.for("Optional");
2
- export let SemanticSymbol = Symbol.for("Semantic");
3
- export let CollectorsSymbol = Symbol.for("Collector");
4
- export let CollectableSymbol = Symbol.for("Collectable");
5
- export let OrderedCollectableSymbol = Symbol.for("OrderedCollectable");
6
- export let WindowCollectableSymbol = Symbol.for("WindowCollectable");
7
- export let StatisticsSymbol = Symbol.for("Statistics");
8
- export let NumericStatisticsSymbol = Symbol.for("NumericStatistics");
9
- export let BigIntStatisticsSymbol = Symbol.for("BigIntStatistics");
10
- export let AsyncCollectableSymbol = Symbol.for("AsyncCollectable");
11
- export let UnorderedCollectableSymbol = Symbol.for("UnorderedCollectable");
2
+ export let AsynchronousSemanticSymbol = Symbol.for("AsynchronousSemantic");
3
+ export let SynchronousSemanticSymbol = Symbol.for("SynchronousSemantic");
4
+ export let AsynchronousCollectorSymbol = Symbol.for("AsynchronousCollector");
5
+ export let SynchronousCollectorSymbol = Symbol.for("SynchronousCollector");
6
+ export let DispatchCollectableSymbol = Symbol.for("DispatchCollectable");
7
+ export let AsynchronousCollectableSymbol = Symbol.for("AsynchronousCollectable");
8
+ export let SynchronousCollectableSymbol = Symbol.for("SynchronousCollectable");
9
+ export let AsynchronousOrderedCollectableSymbol = Symbol.for("OrderedAsynchronousCollectable");
10
+ export let SynchronousOrderedCollectableSymbol = Symbol.for("OrderedSynchronousCollectable");
11
+ export let AsynchronousUnorderedCollectableSymbol = Symbol.for("AsynchronousUnorderedCollectable");
12
+ export let SynchronousUnorderedCollectableSymbol = Symbol.for("SynchronousUnorderedCollectable");
13
+ export let AsynchronousWindowCollectableSymbol = Symbol.for("AsynchronousWindowCollectable");
14
+ export let SynchronousWindowCollectableSymbol = Symbol.for("SynchronousWindowCollectable");
15
+ export let AsynchronousStatisticsSymbol = Symbol.for("AsynchronousStatistics");
16
+ export let SynchronousStatisticsSymbol = Symbol.for("AsynchronousStatistics");
17
+ export let AsynchronousNumericStatisticsSymbol = Symbol.for("AsynchronousNumericStatistics");
18
+ export let SynchronousNumericStatisticsSymbol = Symbol.for("SynchronousNumericStatisticsSymbol");
19
+ export let AsynchronousBigIntStatisticsSymbol = Symbol.for("AsynchronousBigIntStatistics");
20
+ export let SynchronousBigIntStatisticsSymbol = Symbol.for("SynchronousBigIntStatisticsSymbol");