Installation
npm install --save @types/xmpp__component
Summary
This package contains type definitions for @xmpp/component (https://github.com/xmppjs/xmpp.js/tree/main/packages/component).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmpp__component.
index.d.ts
import { Component as ComponentCore, jid as xmppJid, xml as xmppXml } from "@xmpp/component-core";
import { IQCallee } from "@xmpp/iq/callee";
import { IQCaller } from "@xmpp/iq/caller";
import { Middleware } from "@xmpp/middleware";
import { Reconnect } from "@xmpp/reconnect";
export function component(options: Options): Component;
export interface Options {
password?: string | ((authenticate: (password: string) => Promise<void>) => Promise<void>);
service?: string;
domain?: string;
}
export interface Component extends ComponentCore {
entity: Component;
reconnect: Reconnect<Component>;
middleware: Middleware<Component>;
iqCaller: IQCaller<Component>;
iqCallee: IQCallee<Component>;
}
export const jid: typeof xmppJid;
export const xml: typeof xmppXml;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/xmpp__component-core, @types/xmpp__iq, @types/xmpp__middleware, @types/xmpp__reconnect
Credits
These definitions were written by BendingBender.