text-stream-search
Version:
Searches for occurrences of a given search term in Node.js text streams
13 lines (12 loc) • 540 B
TypeScript
import TextStreamAccumulator from "text-stream-accumulator";
import { RejectFunction } from "../types/reject-function.js";
import { ResolveFunction } from "../types/resolve-function.js";
export default class BaseSearch {
accumulator: TextStreamAccumulator;
resolve: ResolveFunction;
reject: RejectFunction;
constructor(accumulator: TextStreamAccumulator, resolve: ResolveFunction, reject: RejectFunction, timeout?: number);
getDisplayName(): string;
foundMatch(): Promise<void>;
onTimeout(): void;
}