Skip to content

Inconsistent typings for shutdown function #971

@aaron-edwards

Description

@aaron-edwards

There seems to be an inconsistent typing of the shutdown function.

The definition file specifies the shutdown function as follows

export function shutdown(cb?: (error: Error) => void): void | null;

however the function seems to require a cb function (See https://github.com/aaron-edwards/log4js-node/blob/master/lib/log4js.js#L106 & https://github.com/aaron-edwards/log4js-node/blob/master/lib/log4js.js#L112)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions