@types/xmpp__debug
TypeScript icon, indicating that this package has built-in type declarations

0.13.3 • Public • Published

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

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/xmpp__debug

Weekly Downloads

117

Version

0.13.3

License

MIT

Unpacked Size

4.13 kB

Total Files

5

Last publish

Collaborators

  • types