npm.io
0.1.3 • Published 2 years ago

@types/saslmechanisms

Licence
MIT
Version
0.1.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.