summaryrefslogtreecommitdiff
path: root/cli/js/web/streams
diff options
context:
space:
mode:
authorcrowlKats <crowlkats@gmail.com>2020-03-13 10:22:22 +0100
committerGitHub <noreply@github.com>2020-03-13 10:22:22 +0100
commite435c2be158ce8657dbff0664b6db222fe4e586c (patch)
treeb0e72033be2ce51a70fd2c2af23e6da131a642bb /cli/js/web/streams
parent3ac642c183981a366e1db565c16b81f864b07ee4 (diff)
Remove doc strings from cli/js TS files (#4329)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'cli/js/web/streams')
-rw-r--r--cli/js/web/streams/mod.ts7
-rw-r--r--cli/js/web/streams/queue-mixin.ts7
-rw-r--r--cli/js/web/streams/queue.ts7
-rw-r--r--cli/js/web/streams/readable-byte-stream-controller.ts7
-rw-r--r--cli/js/web/streams/readable-internals.ts7
-rw-r--r--cli/js/web/streams/readable-stream-byob-reader.ts7
-rw-r--r--cli/js/web/streams/readable-stream-byob-request.ts7
-rw-r--r--cli/js/web/streams/readable-stream-default-controller.ts7
-rw-r--r--cli/js/web/streams/readable-stream-default-reader.ts7
-rw-r--r--cli/js/web/streams/readable-stream.ts7
-rw-r--r--cli/js/web/streams/shared-internals.ts13
-rw-r--r--cli/js/web/streams/strategies.ts7
12 files changed, 0 insertions, 90 deletions
diff --git a/cli/js/web/streams/mod.ts b/cli/js/web/streams/mod.ts
index 5389aaf6d..a6b55ed5a 100644
--- a/cli/js/web/streams/mod.ts
+++ b/cli/js/web/streams/mod.ts
@@ -1,13 +1,6 @@
// Forked from https://github.com/stardazed/sd-streams/tree/8928cf04b035fd02fb1340b7eb541c76be37e546
// Copyright (c) 2018-Present by Arthur Langereis - @zenmumbler MIT
-/**
- * @stardazed/streams - implementation of the web streams standard
- * Part of Stardazed
- * (c) 2018-Present by Arthur Langereis - @zenmumbler
- * https://github.com/stardazed/sd-streams
- */
-
export { SDReadableStream as ReadableStream } from "./readable-stream.ts";
/* TODO The following are currently unused so not exported for clarity.
export { WritableStream } from "./writable-stream.ts";
diff --git a/cli/js/web/streams/queue-mixin.ts b/cli/js/web/streams/queue-mixin.ts
index 23c57d75f..a7ed14974 100644
--- a/cli/js/web/streams/queue-mixin.ts
+++ b/cli/js/web/streams/queue-mixin.ts
@@ -1,13 +1,6 @@
// Forked from https://github.com/stardazed/sd-streams/tree/8928cf04b035fd02fb1340b7eb541c76be37e546
// Copyright (c) 2018-Present by Arthur Langereis - @zenmumbler MIT
-/**
- * streams/queue-mixin - internal queue operations for stream controllers
- * Part of Stardazed
- * (c) 2018-Present by Arthur Langereis - @zenmumbler
- * https://github.com/stardazed/sd-streams
- */
-
/* eslint-disable @typescript-eslint/no-explicit-any */
// TODO reenable this lint here
diff --git a/cli/js/web/streams/queue.ts b/cli/js/web/streams/queue.ts
index 264851baf..16e3eafe4 100644
--- a/cli/js/web/streams/queue.ts
+++ b/cli/js/web/streams/queue.ts
@@ -1,13 +1,6 @@
// Forked from https://github.com/stardazed/sd-streams/tree/8928cf04b035fd02fb1340b7eb541c76be37e546
// Copyright (c) 2018-Present by Arthur Langereis - @zenmumbler MIT
-/**
- * streams/queue - simple queue type with chunked array backing
- * Part of Stardazed
- * (c) 2018-Present by Arthur Langereis - @zenmumbler
- * https://github.com/stardazed/sd-streams
- */
-
const CHUNK_SIZE = 16384;
export interface Queue<T> {
diff --git a/cli/js/web/streams/readable-byte-stream-controller.ts b/cli/js/web/streams/readable-byte-stream-controller.ts
index 86efd416c..8067b5d35 100644
--- a/cli/js/web/streams/readable-byte-stream-controller.ts
+++ b/cli/js/web/streams/readable-byte-stream-controller.ts
@@ -1,13 +1,6 @@
// Forked from https://github.com/stardazed/sd-streams/tree/8928cf04b035fd02fb1340b7eb541c76be37e546
// Copyright (c) 2018-Present by Arthur Langereis - @zenmumbler MIT
-/**
- * streams/readable-byte-stream-controller - ReadableByteStreamController class implementation
- * Part of Stardazed
- * (c) 2018-Present by Arthur Langereis - @zenmumbler
- * https://github.com/stardazed/sd-streams
- */
-
/* eslint-disable @typescript-eslint/no-explicit-any */
// TODO reenable this lint here
diff --git a/cli/js/web/streams/readable-internals.ts b/cli/js/web/streams/readable-internals.ts
index 67f5a69b1..b96262ef7 100644
--- a/cli/js/web/streams/readable-internals.ts
+++ b/cli/js/web/streams/readable-internals.ts
@@ -1,13 +1,6 @@
// Forked from https://github.com/stardazed/sd-streams/tree/8928cf04b035fd02fb1340b7eb541c76be37e546
// Copyright (c) 2018-Present by Arthur Langereis - @zenmumbler MIT
-/**
- * streams/readable-internals - internal types and functions for readable streams
- * Part of Stardazed
- * (c) 2018-Present by Arthur Langereis - @zenmumbler
- * https://github.com/stardazed/sd-streams
- */
-
/* eslint-disable @typescript-eslint/no-explicit-any */
// TODO reenable this lint here
diff --git a/cli/js/web/streams/readable-stream-byob-reader.ts b/cli/js/web/streams/readable-stream-byob-reader.ts
index 0f9bfb037..8527f8db9 100644
--- a/cli/js/web/streams/readable-stream-byob-reader.ts
+++ b/cli/js/web/streams/readable-stream-byob-reader.ts
@@ -1,13 +1,6 @@
// Forked from https://github.com/stardazed/sd-streams/tree/8928cf04b035fd02fb1340b7eb541c76be37e546
// Copyright (c) 2018-Present by Arthur Langereis - @zenmumbler MIT
-/**
- * streams/readable-stream-byob-reader - ReadableStreamBYOBReader class implementation
- * Part of Stardazed
- * (c) 2018-Present by Arthur Langereis - @zenmumbler
- * https://github.com/stardazed/sd-streams
- */
-
import * as rs from "./readable-internals.ts";
import * as shared from "./shared-internals.ts";
diff --git a/cli/js/web/streams/readable-stream-byob-request.ts b/cli/js/web/streams/readable-stream-byob-request.ts
index 25b937f10..75ca1ddfe 100644
--- a/cli/js/web/streams/readable-stream-byob-request.ts
+++ b/cli/js/web/streams/readable-stream-byob-request.ts
@@ -1,13 +1,6 @@
// Forked from https://github.com/stardazed/sd-streams/tree/8928cf04b035fd02fb1340b7eb541c76be37e546
// Copyright (c) 2018-Present by Arthur Langereis - @zenmumbler MIT
-/**
- * streams/readable-stream-byob-request - ReadableStreamBYOBRequest class implementation
- * Part of Stardazed
- * (c) 2018-Present by Arthur Langereis - @zenmumbler
- * https://github.com/stardazed/sd-streams
- */
-
import * as rs from "./readable-internals.ts";
export class ReadableStreamBYOBRequest {
diff --git a/cli/js/web/streams/readable-stream-default-controller.ts b/cli/js/web/streams/readable-stream-default-controller.ts
index e9ddce1bc..d33226a9b 100644
--- a/cli/js/web/streams/readable-stream-default-controller.ts
+++ b/cli/js/web/streams/readable-stream-default-controller.ts
@@ -1,13 +1,6 @@
// Forked from https://github.com/stardazed/sd-streams/tree/8928cf04b035fd02fb1340b7eb541c76be37e546
// Copyright (c) 2018-Present by Arthur Langereis - @zenmumbler MIT
-/**
- * streams/readable-stream-default-controller - ReadableStreamDefaultController class implementation
- * Part of Stardazed
- * (c) 2018-Present by Arthur Langereis - @zenmumbler
- * https://github.com/stardazed/sd-streams
- */
-
/* eslint-disable @typescript-eslint/no-explicit-any */
// TODO reenable this lint here
diff --git a/cli/js/web/streams/readable-stream-default-reader.ts b/cli/js/web/streams/readable-stream-default-reader.ts
index eb1910a9d..3fbf22c8c 100644
--- a/cli/js/web/streams/readable-stream-default-reader.ts
+++ b/cli/js/web/streams/readable-stream-default-reader.ts
@@ -1,13 +1,6 @@
// Forked from https://github.com/stardazed/sd-streams/tree/8928cf04b035fd02fb1340b7eb541c76be37e546
// Copyright (c) 2018-Present by Arthur Langereis - @zenmumbler MIT
-/**
- * streams/readable-stream-default-reader - ReadableStreamDefaultReader class implementation
- * Part of Stardazed
- * (c) 2018-Present by Arthur Langereis - @zenmumbler
- * https://github.com/stardazed/sd-streams
- */
-
import * as rs from "./readable-internals.ts";
import * as shared from "./shared-internals.ts";
diff --git a/cli/js/web/streams/readable-stream.ts b/cli/js/web/streams/readable-stream.ts
index 4d9d85889..e062c278e 100644
--- a/cli/js/web/streams/readable-stream.ts
+++ b/cli/js/web/streams/readable-stream.ts
@@ -1,13 +1,6 @@
// Forked from https://github.com/stardazed/sd-streams/tree/8928cf04b035fd02fb1340b7eb541c76be37e546
// Copyright (c) 2018-Present by Arthur Langereis - @zenmumbler MIT
-/**
- * streams/readable-stream - ReadableStream class implementation
- * Part of Stardazed
- * (c) 2018-Present by Arthur Langereis - @zenmumbler
- * https://github.com/stardazed/sd-streams
- */
-
/* eslint prefer-const: "off" */
// TODO remove this, surpressed because of
// 284:7 error 'branch1' is never reassigned. Use 'const' instead prefer-const
diff --git a/cli/js/web/streams/shared-internals.ts b/cli/js/web/streams/shared-internals.ts
index 93155fecc..3d802b083 100644
--- a/cli/js/web/streams/shared-internals.ts
+++ b/cli/js/web/streams/shared-internals.ts
@@ -1,13 +1,6 @@
// Forked from https://github.com/stardazed/sd-streams/tree/8928cf04b035fd02fb1340b7eb541c76be37e546
// Copyright (c) 2018-Present by Arthur Langereis - @zenmumbler MIT
-/**
- * streams/shared-internals - common types and methods for streams
- * Part of Stardazed
- * (c) 2018-Present by Arthur Langereis - @zenmumbler
- * https://github.com/stardazed/sd-streams
- */
-
/* eslint-disable @typescript-eslint/no-explicit-any */
// TODO don't disable this warning
@@ -20,7 +13,6 @@ export const storedError_ = Symbol("storedError_");
// ---------
-/** An error reason / result can be anything */
export type ErrorResult = any;
// ---------
@@ -122,11 +114,6 @@ function supportsSharedArrayBuffer(): boolean {
return sharedArrayBufferSupported_;
}
-/**
- * Implement a method of value cloning that is reasonably close to performing `StructuredSerialize(StructuredDeserialize(value))`
- * from the HTML standard. Used by the internal `readableStreamTee` method to clone values for connected implementations.
- * @see https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializeinternal
- */
export function cloneValue(value: any): any {
const valueType = typeof value;
switch (valueType) {
diff --git a/cli/js/web/streams/strategies.ts b/cli/js/web/streams/strategies.ts
index 5f7ffc632..98fe0f91a 100644
--- a/cli/js/web/streams/strategies.ts
+++ b/cli/js/web/streams/strategies.ts
@@ -1,13 +1,6 @@
// Forked from https://github.com/stardazed/sd-streams/tree/8928cf04b035fd02fb1340b7eb541c76be37e546
// Copyright (c) 2018-Present by Arthur Langereis - @zenmumbler MIT
-/**
- * streams/strategies - implementation of the built-in stream strategies
- * Part of Stardazed
- * (c) 2018-Present by Arthur Langereis - @zenmumbler
- * https://github.com/stardazed/sd-streams
- */
-
/* eslint-disable @typescript-eslint/no-explicit-any */
// TODO reenable this lint here