# @types/xmpp__stream-features

> TypeScript definitions for @xmpp/stream-features

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

## Install

```sh
npm install @types/xmpp__stream-features
pnpm add @types/xmpp__stream-features
yarn add @types/xmpp__stream-features
bun add @types/xmpp__stream-features
```

## Health

**Score 70/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; popular repo; extremely popular.

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 | 4 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51464 |
| Maintainers | types |

## Links

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

## Dependencies (4)

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

## Recent versions

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

## README

# Installation
> `npm install --save @types/xmpp__stream-features`

# Summary
This package contains type definitions for @xmpp/stream-features (https://github.com/xmppjs/xmpp.js/tree/main/packages/stream-features).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmpp__stream-features.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmpp__stream-features/index.d.ts)
````ts
import { Entity, IncomingContext, Middleware } from "@xmpp/middleware";
import { Element } from "@xmpp/xml";
import Koa = require("koa");
import koaCompose = require("koa-compose");

export default streamFeatures;

declare function streamFeatures<TEntity extends Entity>({
    middleware,
}: {
    middleware: Middleware<TEntity>;
}): StreamFeatures<TEntity>;

export interface StreamFeatures<TEntity extends Entity> {
    use(
        name: string,
        xmlns: string | undefined,
        handler: (ctx: IncomingContext<TEntity>, next: Koa.Next, feature: Element) => Promise<any>,
    ): koaCompose.Middleware<IncomingContext<TEntity>>;
}

````

### Additional Details
 * Last updated: Thu, 11 Dec 2025 21:02:12 GMT
 * Dependencies: [@types/koa](https://npmjs.com/package/@types/koa), [@types/koa-compose](https://npmjs.com/package/@types/koa-compose), [@types/xmpp__middleware](https://npmjs.com/package/@types/xmpp__middleware), [@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__stream-features · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
