mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add bunyan-seq typings
This commit is contained in:
parent
0b417416fe
commit
af9d8f5435
2
types/bunyan-seq/bunyan-seq-tests.ts
Normal file
2
types/bunyan-seq/bunyan-seq-tests.ts
Normal file
@ -0,0 +1,2 @@
|
||||
import bunyanSeq = require("bunyan-seq");
|
||||
bunyanSeq.createStream({name: 'LoggerComponent', serverUrl: 'http://seq.com'});
|
||||
21
types/bunyan-seq/index.d.ts
vendored
Normal file
21
types/bunyan-seq/index.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
// Type definitions for bunyan-blackhole 0.2
|
||||
// Project: https://github.com/datalust/bunyan-seq
|
||||
// Definitions by: Ray Booysen <https://github.com/raybooysen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
/// <reference types="node" />
|
||||
import * as Logger from "bunyan";
|
||||
export interface Configuration {
|
||||
apiKey?: string;
|
||||
batchSizeLimit?: number;
|
||||
eventSizeLimit?: number;
|
||||
level?: string;
|
||||
maxBatchingTime?: number;
|
||||
name?: string;
|
||||
onError?: (e: Error) => void;
|
||||
reemitErrorEvents?: boolean;
|
||||
serverUrl?: string;
|
||||
}
|
||||
|
||||
export function createStream(config: Configuration): Logger.Stream;
|
||||
23
types/bunyan-seq/tsconfig.json
Normal file
23
types/bunyan-seq/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"bunyan-seq-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/bunyan-seq/tslint.json
Normal file
1
types/bunyan-seq/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user