fix(netstring): Visibility of Stream type
MODIFY
packages/netstring/NEWS.md
packages/netstring/NEWS.md
## Next release
-- No changes yet
+- Fixes a problem with the external visibility of TypeScript types.
## Release 0.1.0 (2021-04-26)

DELETE
packages/netstring/src/types.js
-// @ts-check
-
-/**
- * @template T
- * @template U
- * @template V
- * @typedef {{
- * next(value: U): Promise<IteratorResult<T>>,
- * return(value: V): Promise<IteratorResult<T>>,
- * throw(error: Error): Promise<IteratorResult<T>>,
- * [Symbol.asyncIterator](): Stream<T, U, V>
- * }} Stream
- */

MODIFY
packages/netstring/src/writer.js
packages/netstring/src/writer.js
@@ -5,6 +5,18 @@ const COMMA = ','.charCodeAt(0);
const encoder = new TextEncoder();
+/**
+ * @template T
+ * @template U
+ * @template V
+ * @typedef {{
+ * next(value: U): Promise<IteratorResult<T>>,
+ * return(value: V): Promise<IteratorResult<T>>,
+ * throw(error: Error): Promise<IteratorResult<T>>,
+ * [Symbol.asyncIterator](): Stream<T, U, V>
+ * }} Stream
+ */
+
/**
* @param {Stream<void, Uint8Array, void>} output
* @returns {Stream<void, Uint8Array, void>}

fix(netstring): Visibility of Stream type