Skip to content

enable(string) missing in TypeScript types #835

Closed
@Apollon77

Description

@Apollon77

I use some libraryies that use debug in some projects and so I have code like this to "redirect" the debug logging:

        debug.enable('hap-controller:*');
        debug.log = this.log.debug.bind(this);

The Typescript types from debug do not provide the "enable(string)" method. It would be awesome if this could be added

Activity

Apollon77

Apollon77 commented on Aug 21, 2021

@Apollon77
Author

hm ... I just discovered #726 ... No idea who maintains the types defined in https://www.npmjs.com/package/@types/debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      enable(string) missing in TypeScript types · Issue #835 · debug-js/debug