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
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/xmpp__iq, @types/xmpp__middleware, @types/xmpp__stream-features, @types/xmpp__xml
Credits
These definitions were written by BendingBender.