Installation
npm install --save @types/log-rotate
Summary
This package contains type definitions for log-rotate (https://github.com/dstokes/log-rotate#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/log-rotate.
index.d.ts
declare function logRotate(file: string, options: logRotate.Options, cb: logRotate.Callback): void;
declare function logRotate(file: string, cb: logRotate.Callback): void;
declare namespace logRotate {
type Callback = (err: Error | null, rotated?: string) => void;
interface Options {
/**
* Compress rotated files with gzip
*/
compress?: boolean;
/**
* Move a log file while incrementing existing indexed / rotated logs
*/
count?: number;
matcher?: RegExp;
}
}
export = logRotate;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: none
Credits
These definitions were written by sandrewtx08.