mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
upating hapi-auth-bearer-token to use the newest hapi__hapi typings instead of the old hapi ones (#43020)
This commit is contained in:
parent
b2292f9963
commit
cd06f6a8c2
@ -1,6 +1,6 @@
|
||||
// from https://github.com/johnbrett/hapi-auth-bearer-token
|
||||
|
||||
import { Server } from 'hapi';
|
||||
import { Server } from '@hapi/hapi';
|
||||
import * as AuthBearer from 'hapi-auth-bearer-token';
|
||||
|
||||
const server = new Server({ port: 8080 });
|
||||
|
||||
4
types/hapi-auth-bearer-token/index.d.ts
vendored
4
types/hapi-auth-bearer-token/index.d.ts
vendored
@ -9,11 +9,11 @@ import {
|
||||
Plugin,
|
||||
ResponseToolkit,
|
||||
AuthenticationData,
|
||||
} from 'hapi';
|
||||
} from '@hapi/hapi';
|
||||
|
||||
type ValidateReturn = AuthenticationData & { isValid: boolean };
|
||||
|
||||
declare module 'hapi' {
|
||||
declare module '@hapi/hapi' {
|
||||
interface ServerAuth {
|
||||
strategy(name: string, scheme: 'bearer-access-token', options: BearerToken.SchemaOptions): void;
|
||||
}
|
||||
|
||||
@ -12,6 +12,32 @@
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"paths": {
|
||||
"@hapi/hapi": [
|
||||
"hapi__hapi"
|
||||
],
|
||||
"@hapi/boom": [
|
||||
"hapi__boom"
|
||||
],
|
||||
"@hapi/shot": [
|
||||
"hapi__shot"
|
||||
],
|
||||
"@hapi/mimos": [
|
||||
"hapi__mimos"
|
||||
],
|
||||
"@hapi/iron": [
|
||||
"hapi__iron"
|
||||
],
|
||||
"@hapi/joi": [
|
||||
"hapi__joi"
|
||||
],
|
||||
"@hapi/podium": [
|
||||
"hapi__podium"
|
||||
],
|
||||
"@hapi/catbox": [
|
||||
"hapi__catbox"
|
||||
]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user