Installation
npm install --save @types/tail
Summary
This package contains type definitions for tail (https://github.com/lucagrulla/node-tail).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tail.
export interface TailOptions {
separator?: string | RegExp | null | undefined;
fromBeginning?: boolean | undefined;
fsWatchOptions?: Record<string, any> | undefined;
follow?: boolean | undefined;
logger?: any;
encoding?: string | undefined;
useWatchFile?: boolean | undefined;
flushAtEOF?: boolean | undefined;
nLines?: number | undefined;
}
export class Tail {
constructor(filename: string, options?: TailOptions);
on(eventType: "line", cb: (data: any) => void): void;
on(eventType: "error", cb: (error: any) => void): void;
unwatch(): void;
watch(): void;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Mike Linkovich, and Devin Davies.