Installation
npm install --save @types/hapi__basic
Summary
This package contains type definitions for @hapi/basic (https://github.com/hapijs/basic).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__basic.
index.d.ts
import { Plugin, Request, ResponseToolkit } from "@hapi/hapi";
declare namespace Basic {
interface ValidateCustomResponse {
response: any;
}
interface ValidateResponse {
isValid: boolean;
credentials?: any;
}
interface Validate {
(
request: Request,
username: string,
password: string,
h: ResponseToolkit,
): Promise<ValidateResponse | ValidateCustomResponse>;
}
}
declare var Basic: Plugin<{}>;
export = Basic;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @hapi/hapi, @types/node, joi
Credits
These definitions were written by AJP, Rodrigo Saboya, and Silas Rech.