From 9ed3c6978d09520111bcb24f4689b26c32fcbd38 Mon Sep 17 00:00:00 2001 From: Simon Schick Date: Sat, 19 Jan 2019 00:35:42 -0800 Subject: [PATCH] fixup! feat(hapi): v18 --- types/hapi/v17/test/server/server-auth-test.ts | 2 +- types/hapi/v17/tsconfig.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/types/hapi/v17/test/server/server-auth-test.ts b/types/hapi/v17/test/server/server-auth-test.ts index c9f25fdfac..4e2a175e1a 100644 --- a/types/hapi/v17/test/server/server-auth-test.ts +++ b/types/hapi/v17/test/server/server-auth-test.ts @@ -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 }; diff --git a/types/hapi/v17/tsconfig.json b/types/hapi/v17/tsconfig.json index b9ad2d5009..c0e48eaa17 100644 --- a/types/hapi/v17/tsconfig.json +++ b/types/hapi/v17/tsconfig.json @@ -13,6 +13,11 @@ "../../" ], "types": [], + "paths": { + "hapi": [ + "hapi/v17" + ] + }, "noEmit": true, "forceConsistentCasingInFileNames": true },