0.13.3 • Published 1 year ago

@types/xmpp__error v0.13.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

// Type definitions for @xmpp/error 0.13
// Project: https://github.com/xmppjs/xmpp.js/tree/main/packages/error
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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, 30 Nov 2021 17:31:48 GMT
  • Dependencies: @types/xmpp__xml
  • Global values: none

Credits

These definitions were written by BendingBender.