Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable(string) missing in TypeScript types #835

Closed
Apollon77 opened this issue Aug 21, 2021 · 1 comment
Closed

enable(string) missing in TypeScript types #835

Apollon77 opened this issue Aug 21, 2021 · 1 comment

Comments

@Apollon77
Copy link

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

@Apollon77
Copy link
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
Labels
None yet
Development

No branches or pull requests

1 participant