Installation
npm install --save @types/node-xmpp-core
Summary
This package contains type definitions for node-xmpp-core (https://github.com/node-xmpp/node-xmpp).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-xmpp-core.
import { Element } from 'ltx';
import { EventEmitter } from 'events';
export { createElement, Element, escapeXML, escapeXMLText } from 'ltx';
export class Connection extends EventEmitter {
constructor(opts?: any);
}
export namespace SRV {
function connect(opts?: any): any;
}
export class Stanza extends Element {
from: string;
to: string;
id: string;
type: string;
constructor(name: string, attrs?: any);
}
export function createStanza(name: string, attrs?: any): Element;
export class IQ extends Stanza {
constructor(attrs?: any);
}
export class Message extends Stanza {
constructor(attrs?: any);
}
export class Presence extends Stanza {
constructor(attrs?: any);
}
export class JID {
local: string;
domain: string;
resource: string;
constructor(local: string, domain?: string, resource?: string);
parseJID(jid: string): void;
toString(unescape?: any): string;
bare(): JID;
equals(other: JID): boolean;
setLocal(local: string, escape?: any): void;
getLocal(unescape?: any): string;
setDomain(value: string): void;
getDomain(): string;
setResource(value: string): void;
getResource(): string;
}
Additional Details
Credits
These definitions were written by PJakcson.