0.4.4 • Published 2 years ago
@types/bristol v0.4.4
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
// Type definitions for bristol 0.4
// Project: https://github.com/TomFrost/Bristol
// Definitions by: Eric Heikes <https://github.com/eheikes>
// Elliott Campbell <https://github.com/ElliottCampbellJHA>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// 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: Thu, 08 Jul 2021 00:35:40 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Eric Heikes, and Elliott Campbell.