0.13.3 • Published 6 months ago
@types/xmpp__resource-binding v0.13.3
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
// Type definitions for @xmpp/resource-binding 0.13
// Project: https://github.com/xmppjs/xmpp.js/tree/main/packages/resource-binding
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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, 30 Nov 2021 17:31:50 GMT
- Dependencies: @types/xmpp__iq, @types/xmpp__middleware, @types/xmpp__stream-features, @types/xmpp__xml
- Global values: none
Credits
These definitions were written by BendingBender.