Installation
npm install --save @types/sasl-plain
Summary
This package contains type definitions for sasl-plain (https://github.com/jaredhanson/js-sasl-plain).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sasl-plain.
index.d.ts
import { Mechanism } from "saslmechanisms";
export = PlainMechanism;
declare class PlainMechanism implements Mechanism {
static Mechanism: typeof PlainMechanism;
static prototype: {
name: "PLAIN";
clientFirst: true;
};
name: "PLAIN";
clientFirst: true;
response(cred: PlainMechanism.Credentials): string;
challenge(chal: string): this;
}
declare namespace PlainMechanism {
interface Credentials {
authzid?: string | undefined;
username: string;
password: string;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/saslmechanisms
Credits
These definitions were written by BendingBender.