mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
fixup! feat(hapi): v18
This commit is contained in:
@@ -34,7 +34,7 @@ server.route({
|
||||
path: '/',
|
||||
handler: async (request: Request, h: ResponseToolkit) => {
|
||||
try {
|
||||
const { credentials } = await request.server.auth.test('default', request);
|
||||
const credentials = await request.server.auth.test('default', request);
|
||||
return { status: true, user: credentials.name };
|
||||
} catch (err) {
|
||||
return { status: false };
|
||||
|
||||
@@ -13,6 +13,11 @@
|
||||
"../../"
|
||||
],
|
||||
"types": [],
|
||||
"paths": {
|
||||
"hapi": [
|
||||
"hapi/v17"
|
||||
]
|
||||
},
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user