chore(csv): remove redundant constructor examples (#5509)

chore(csv): remove constructor examples
This commit is contained in:
Asher Gomez 2024-07-23 13:05:23 +10:00 committed by GitHub
parent 94c3949718
commit 482d28ac11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 32 deletions

View File

@ -138,19 +138,6 @@ export class CsvParseStream<
#headers: readonly string[] = [];
/** Construct a new instance.
*
* @example Usage
* ```ts no-assert
* import { CsvParseStream } from "@std/csv/parse-stream";
*
* const source = ReadableStream.from([
* "name,age",
* "Alice,34",
* "Bob,24",
* "Charlie,45",
* ]);
* const parts = source.pipeThrough(new CsvParseStream());
* ```
*
* @param options Options for the stream.
*/

View File

@ -54,25 +54,6 @@ export class CsvStringifyStream<TOptions extends CsvStringifyStreamOptions>
/**
* Construct a new instance.
*
* @example Usage
* ```ts no-assert
* import { CsvStringifyStream } from "@std/csv/stringify-stream";
*
* const path = await Deno.makeTempFile();
*
* const file = await Deno.open(path, { create: true, write: true });
* const readable = ReadableStream.from([
* { id: 1, name: "one" },
* { id: 2, name: "two" },
* { id: 3, name: "three" },
* ]);
*
* await readable
* .pipeThrough(new CsvStringifyStream({ columns: ["id", "name"] }))
* .pipeThrough(new TextEncoderStream())
* .pipeTo(file.writable);
* ```
*
* @param options Options for the stream.
*/
constructor(options?: TOptions) {