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

0.13.3 • Public • Published

Installation

npm install --save @types/xmpp__resource-binding

Summary

This package contains type definitions for @xmpp/resource-binding (https://github.com/xmppjs/xmpp.js/tree/main/packages/resource-binding).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmpp__resource-binding.

index.d.ts

import { IQCaller } from "@xmpp/iq/caller";
import { Entity } from "@xmpp/middleware";
import { StreamFeatures } from "@xmpp/stream-features";
import { Node } from "@xmpp/xml";

export = resourceBinding;

/**
 * Resource binding for `@xmpp/client`.
 *
 * Included and enabled in `@xmpp/client`.
 */
declare function resourceBinding<TEntity extends Entity>(
    {
        streamFeatures,
        iqCaller,
    }: {
        streamFeatures: StreamFeatures<TEntity>;
        iqCaller: IQCaller<TEntity>;
    },
    resource?: resourceBinding.Resource,
): void;

declare namespace resourceBinding {
    type Resource = ResourceFn | Node;
    type ResourceFn = (bind: (resource: Node) => Promise<string>) => Promise<void>;
}

Additional Details

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/xmpp__resource-binding

Weekly Downloads

470

Version

0.13.3

License

MIT

Unpacked Size

4.57 kB

Total Files

5

Last publish

Collaborators

  • types