Installation
npm install --save @types/xmpp__error
Summary
This package contains type definitions for @xmpp/error (https://github.com/xmppjs/xmpp.js/tree/main/packages/error).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmpp__error.
index.d.ts
import { Element } from "@xmpp/xml";
export = XMPPError;
declare class XMPPError<TName extends string = "XMPPError"> extends Error {
readonly name: TName;
readonly condition: string;
readonly text: string | undefined;
readonly application: Element | undefined;
element?: Element | undefined;
constructor(condition: string, text?: string, application?: Element);
static fromElement(element: Element): XMPPError;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/xmpp__xml
Credits
These definitions were written by BendingBender.