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

0.1.4 • Public • Published

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

Credits

These definitions were written by BendingBender.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/sasl-plain

    Weekly Downloads

    15

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    3.77 kB

    Total Files

    5

    Last publish

    Collaborators

    • types