Skip to content

Commit

Permalink
repo: re-add missing exports because docs link to them
Browse files Browse the repository at this point in the history
  • Loading branch information
thetayloredman committed Feb 19, 2023
1 parent 80e8bdc commit 9a9bc4b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
*/

import SafeEventEmitter from "./lib/SafeEventEmitter.js";
import { ControlCharacters } from "./stream/controlCharacters.js";
import DirectStream, { DirectStreamEventArguments, DirectStreamEvents } from "./stream/directstream.js";
import { bytes, kb, mb } from "./lib/sizeHelpers.js";
import { ControlCharacters, SizedControlCharacters } from "./stream/controlCharacters.js";
import DirectStream, { DirectStreamEventArguments, DirectStreamEvents } from "./stream/DirectStream.js";

export { ControlCharacters, DirectStream, DirectStreamEventArguments, DirectStreamEvents, SafeEventEmitter };
export { bytes, ControlCharacters, DirectStream, DirectStreamEventArguments, DirectStreamEvents, kb, mb, SafeEventEmitter, SizedControlCharacters };
File renamed without changes.
1 change: 1 addition & 0 deletions src/stream/controlCharacters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ enum ControlCharacters {
/** **Read Reset**: Invalidates any data before this (if possible) and resets */
ReadReset = 0x18
}
/** All {@link ControlCharacters} with a size argument */
type SizedControlCharacters =
| ControlCharacters.ReadBytes
| ControlCharacters.ReadKB
Expand Down
2 changes: 1 addition & 1 deletion src/tests/stream/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import { kb, mb } from "../../lib/sizeHelpers";
import { ControlCharacters } from "../../stream/controlCharacters";
import DirectStream, { DirectStreamEvents } from "../../stream/directstream";
import DirectStream, { DirectStreamEvents } from "../../stream/DirectStream";

/** Makes a new {@link DirectStream} and attaches listeners. */
function makeNewStream(): { stream: DirectStream; onRead: jest.Mock; onPacket: jest.Mock; onReset: jest.Mock } {
Expand Down

0 comments on commit 9a9bc4b

Please sign in to comment.