npm.io
0.14.0 • Published 10 months ago

@types/xmpp__error

Licence
MIT
Version
0.14.0
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.5K

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 default 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

Credits

These definitions were written by BendingBender.