diff --git a/types/bunyan-format/bunyan-format-tests.ts b/types/bunyan-format/bunyan-format-tests.ts index 3f4c2a658d..159c3cde17 100644 --- a/types/bunyan-format/bunyan-format-tests.ts +++ b/types/bunyan-format/bunyan-format-tests.ts @@ -3,3 +3,7 @@ import BunyanFormatWritable = require('bunyan-format'); const formatOut = new BunyanFormatWritable({ outputMode: 'short' }); const formatOut2 = new BunyanFormatWritable({ outputMode: 'bunyan', levelInString: true }); + +const formatOut3 = BunyanFormatWritable({ outputMode: 'short' }); + +const formatOut4 = BunyanFormatWritable({ outputMode: 'bunyan', levelInString: true }); diff --git a/types/bunyan-format/index.d.ts b/types/bunyan-format/index.d.ts index 06a37ba2e5..867e724785 100644 --- a/types/bunyan-format/index.d.ts +++ b/types/bunyan-format/index.d.ts @@ -1,8 +1,9 @@ // Type definitions for bunyan-format 0.2 // Project: https://github.com/thlorenz/bunyan-format // Definitions by: Piotr Roszatycki +// Ashley Abbott // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 +// TypeScript Version: 3.6 /// @@ -27,4 +28,6 @@ declare class BunyanFormatWritable extends Writable { constructor(options: BunyanFormatWritable.Options, output?: Writable); } +declare function BunyanFormatWritable(options: BunyanFormatWritable.Options, output?: Writable): BunyanFormatWritable; + export = BunyanFormatWritable;