@graffy/stream 0.15.8-alpha.3 → 0.15.8-alpha.4

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 CHANGED
@@ -2,14 +2,14 @@
2
2
  "name": "@graffy/stream",
3
3
  "description": "Utility for creating AsyncIterables (streams) from any callback-based",
4
4
  "author": "aravind (https://github.com/aravindet)",
5
- "version": "0.15.8-alpha.3",
5
+ "version": "0.15.8-alpha.4",
6
6
  "main": "./index.cjs",
7
7
  "exports": {
8
8
  "import": "./index.mjs",
9
9
  "require": "./index.cjs"
10
10
  },
11
11
  "module": "./index.mjs",
12
- "types": "./index.d.ts",
12
+ "types": "./types/index.d.ts",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git+https://github.com/usegraffy/graffy.git"
@@ -0,0 +1,2 @@
1
+ export { default as makeStream } from "./makeStream.js";
2
+ export { default as mapStream } from "./mapStream.js";
@@ -0,0 +1,10 @@
1
+ export default function makeStream(init: any, options?: {}): {
2
+ debugId: any;
3
+ next: () => any;
4
+ return(value: any): Promise<{
5
+ value: any;
6
+ done: boolean;
7
+ }>;
8
+ throw(error: any): Promise<never>;
9
+ [Symbol.asyncIterator](): any;
10
+ };
@@ -0,0 +1,10 @@
1
+ export default function mapStream(stream: any, fn: any): {
2
+ debugId: any;
3
+ next: () => any;
4
+ return(value: any): Promise<{
5
+ value: any;
6
+ done: boolean;
7
+ }>;
8
+ throw(error: any): Promise<never>;
9
+ [Symbol.asyncIterator](): any;
10
+ };
package/index.d.ts DELETED
@@ -1,28 +0,0 @@
1
- declare module "makeStream" {
2
- export default function makeStream(init: any, options?: {}): {
3
- debugId: any;
4
- next: () => any;
5
- return(value: any): Promise<{
6
- value: any;
7
- done: boolean;
8
- }>;
9
- throw(error: any): Promise<never>;
10
- [Symbol.asyncIterator](): any;
11
- };
12
- }
13
- declare module "mapStream" {
14
- export default function mapStream(stream: any, fn: any): {
15
- debugId: any;
16
- next: () => any;
17
- return(value: any): Promise<{
18
- value: any;
19
- done: boolean;
20
- }>;
21
- throw(error: any): Promise<never>;
22
- [Symbol.asyncIterator](): any;
23
- };
24
- }
25
- declare module "index" {
26
- export { default as makeStream } from "./makeStream.js";
27
- export { default as mapStream } from "./mapStream.js";
28
- }