# @types/xmpp__error

> TypeScript definitions for @xmpp/error

Latest version **0.14.0** (published 2025-12-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/xmpp__error
pnpm add @types/xmpp__error
yarn add @types/xmpp__error
bun add @types/xmpp__error
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.14.0 |
| Published | 2025-12-11 |
| First published | 2021-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/xmpp__error
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmpp__error
- npm.io page: https://npm.io/package/@types/xmpp__error

## Dependencies (1)

- [@types/xmpp__xml](https://npm.io/package/@types/xmpp__xml.md) *

## Recent versions

- 0.14.0 (latest) — 2025-12-11
- 0.13.3 (ts5.1) — 2023-11-07
- 0.13.1 (ts4.4) — 2023-08-30
- 0.13.0 (ts3.9) — 2021-11-30
- 0.13.2 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmpp__error/index.d.ts)
````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
 * Last updated: Thu, 11 Dec 2025 21:02:12 GMT
 * Dependencies: [@types/xmpp__xml](https://npmjs.com/package/@types/xmpp__xml)

# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender).

---
_Source: https://npm.io/package/@types/xmpp__error · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
