mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Update `TypeScript Version`s to be at least as high as dependencies' versions * Run through again
22 lines
624 B
TypeScript
22 lines
624 B
TypeScript
// Type definitions for hapi 4.2
|
|
// Project: https://github.com/hapijs/hapi-auth-basic
|
|
// Definitions by: AJP <https://github.com/AJamesPhillips>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.4
|
|
|
|
import * as Hapi from 'hapi';
|
|
|
|
declare namespace Basic {
|
|
interface ValidateFuncCallback {
|
|
(err: Error | null, isValid: boolean, userCredentials?: any): void;
|
|
}
|
|
|
|
interface ValidateFunc {
|
|
(request: Hapi.Request, username: string, password: string, callback: ValidateFuncCallback): void;
|
|
}
|
|
}
|
|
|
|
declare var Basic: Hapi.PluginFunction<{}>;
|
|
|
|
export = Basic;
|