0.1.4 • Published 6 months ago

@types/sasl-plain v0.1.4

Weekly downloads
70
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for sasl-plain 0.1
// Project: https://github.com/jaredhanson/js-sasl-plain
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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.

0.1.2

8 months ago

0.1.4

6 months ago

0.1.3

7 months ago

0.1.1

3 years ago

0.1.0

5 years ago