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

0.13.3 • Public • Published

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

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/xmpp__error

Weekly Downloads

1,598

Version

0.13.3

License

MIT

Unpacked Size

3.57 kB

Total Files

5

Last publish

Collaborators

  • types