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

0.13.3 • Public • Published

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

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/xmpp__component

Weekly Downloads

55

Version

0.13.3

License

MIT

Unpacked Size

4.67 kB

Total Files

5

Last publish

Collaborators

  • types