bunyan-format: Add merged function declaration to support calling default export as a function (#40257)

* Add merged function declaration to support calling as a function

Signed-off-by: Ashley Abbott <ashpabb@gmail.com>

* Add tests for function call

Signed-off-by: Ashley Abbott <ashpabb@gmail.com>

* Add contributor and set Typescript Version to 3.6

Signed-off-by: Ashley Abbott <ashpabb@gmail.com>

* Missing line ending for tests.ts

Signed-off-by: Ashley Abbott <ashpabb@gmail.com>

* Update library version number

Signed-off-by: Ashley Abbott <ashpabb@gmail.com>

* Removing patch version from index.d.ts to satisfy Jenkins constraints

Signed-off-by: Ashley Abbott <ashpabb@gmail.com>
This commit is contained in:
Ashley Abbott
2019-11-15 19:24:24 -05:00
committed by Pranav Senthilnathan
parent d4e9d64729
commit dbb2bb1731
2 changed files with 8 additions and 1 deletions

View File

@@ -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 });

View File

@@ -1,8 +1,9 @@
// Type definitions for bunyan-format 0.2
// Project: https://github.com/thlorenz/bunyan-format
// Definitions by: Piotr Roszatycki <https://github.com/dex4er>
// Ashley Abbott <https://github.com/ashpabb>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
// TypeScript Version: 3.6
/// <reference types="node" />
@@ -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;