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

0.1.3 • Public • Published

Installation

npm install --save @types/saslmechanisms

Summary

This package contains type definitions for saslmechanisms (https://github.com/jaredhanson/js-sasl).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/saslmechanisms.

index.d.ts

export = Factory;

declare class Factory {
    static Factory: typeof Factory;

    use(name: string, mechanism: Factory.MechanismStatic): this;
    use(mechanism: Factory.MechanismStatic): this;
    create(mechanisms: string[]): Factory.Mechanism | null;
}

declare namespace Factory {
    interface MechanismStatic {
        new(): Mechanism;
        prototype: {
            [key: string]: any;
            name: string;
        };
    }
    interface Mechanism {
        name: string;

        response(cred: { [key: string]: any }): string;

        challenge(chal: string): void;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/saslmechanisms

      Weekly Downloads

      461

      Version

      0.1.3

      License

      MIT

      Unpacked Size

      3.78 kB

      Total Files

      5

      Last publish

      Collaborators

      • types