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.