Installation
npm install --save @types/bristol
Summary
This package contains type definitions for bristol (https://github.com/TomFrost/Bristol).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bristol.
index.d.ts
// Caveat: Currently, .d.ts files are unable to handle this package fully
// as it requires both class and namespace be exported.
interface LogError {
message?: string | undefined;
reason?: any;
stack?: any;
}
interface LogData {
code?: number | undefined;
id?: string | undefined;
path?: string | undefined;
error?: LogError | undefined;
data?: any;
}
declare class Bristol {
addTarget(target: any, opts?: any): any;
withFormatter(formatter: string): any;
withLowestSeverity(severity: string): any;
info(message: string, data: LogData): any;
warn(message: string, data: LogData): any;
error(message: string, data: LogData): any;
debug(message: string, data: LogData): any;
}
declare const bristol: Bristol;
export = bristol;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Eric Heikes, and Elliott Campbell.