Skip to content

Commit

Permalink
refactor(lib/streams): remove unused Transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
hasundue committed Mar 21, 2024
1 parent 777a734 commit bf5b1d5
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,6 @@ export class Distinctor<R = unknown, T = unknown>
}
}

export class Transformer<R = unknown, W = unknown>
extends TransformStream<R, W> {
constructor(fn: (chunk: R) => W) {
super({
transform(event, controller) {
const result = fn(event);
if (result) {
controller.enqueue(result);
}
},
});
}
}

export type LogLevel = "error" | "warn" | "info" | "debug";

export interface ConsoleLoggerOptions {
Expand Down

0 comments on commit bf5b1d5

Please sign in to comment.