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/utility.d.ts CHANGED
@@ -55,12 +55,18 @@ export interface BiConsumer<T, U> {
55
55
  export interface TriConsumer<T, U, V> {
56
56
  (t: T, u: U, v: V): void;
57
57
  }
58
- export interface Generator<T> {
58
+ export interface SynchronousGenerator<T> {
59
59
  (accept: Consumer<T>, interrupt: Predicate<T>): void;
60
60
  (accept: Consumer<T>, interrupt: BiPredicate<T, bigint>): void;
61
61
  (accept: BiConsumer<T, bigint>, interrupt: Predicate<T>): void;
62
62
  (accept: BiConsumer<T, bigint>, interrupt: BiPredicate<T, bigint>): void;
63
63
  }
64
+ export interface AsynchronousGenerator<T> {
65
+ (accept: Consumer<T>, interrupt: Predicate<T>): Promise<void>;
66
+ (accept: Consumer<T>, interrupt: BiPredicate<T, bigint>): Promise<void>;
67
+ (accept: BiConsumer<T, bigint>, interrupt: Predicate<T>): Promise<void>;
68
+ (accept: BiConsumer<T, bigint>, interrupt: BiPredicate<T, bigint>): Promise<void>;
69
+ }
64
70
  export interface Indexed<E> {
65
71
  element: E;
66
72
  index: bigint;
package/dist/utility.js CHANGED
@@ -25,3 +25,4 @@ export let typeOf = (t) => {
25
25
  ;
26
26
  ;
27
27
  ;
28
+ ;
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/eloyhere"
7
7
  },
8
8
  "description": "A modern type-safe stream processing library inspired by JavaScript Generator, Java Stream, and MySQL Index. Supports lazy evaluation, async streams, statistics, and IO-like operations.",
9
- "version": "0.5.3",
9
+ "version": "0.7.0",
10
10
  "type": "module",
11
11
  "readme": "readme.md",
12
12
  "main": "dist/index.js",
@@ -36,7 +36,8 @@
36
36
  "blob-stream",
37
37
  "websocket-stream",
38
38
  "frontend",
39
- "bigInt"
39
+ "bigInt",
40
+ "semantic"
40
41
  ],
41
42
  "repository": {
42
43
  "type": "git",