Installation
npm install --save @types/xmpp__debug
Summary
This package contains type definitions for @xmpp/debug (https://github.com/xmppjs/xmpp.js/tree/main/packages/debug).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmpp__debug.
index.d.ts
import Connection = require("@xmpp/connection");
import { Element } from "@xmpp/xml";
export = debug;
/**
* Prints logs and debug information to the console for an entity.
*
* Sensitive information (authentication) is replaced with `<hidden xmlns="xmpp.js"/>`.
*
* @example
* import { client } from '@xmpp/client'; // or component, ...
* import debug = require('@xmpp/debug');
* const xmpp = client(...);
*
* debug(xmpp) // requires process.env.XMPP_DEBUG
* // or
* debug(xmpp, true) // always enabled
*/
declare function debug(entity: Connection, force?: boolean): void;
declare namespace debug {
function hideSensitive(el: Element): Element;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/xmpp__connection, @types/xmpp__xml
Credits
These definitions were written by BendingBender.