mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
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:
committed by
Pranav Senthilnathan
parent
d4e9d64729
commit
dbb2bb1731
@@ -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 });
|
||||
|
||||
5
types/bunyan-format/index.d.ts
vendored
5
types/bunyan-format/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user