From 29f87e571b3fee00b49bef22533f6f9e076634d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Soboci=C5=84ski?= Date: Sat, 19 Mar 2016 14:20:42 +0100 Subject: [PATCH 1/3] added 2 missing definition to server.auth.default --- hapi/hapi-8.2.0.d.ts | 2 ++ hapi/hapi.d.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hapi/hapi-8.2.0.d.ts b/hapi/hapi-8.2.0.d.ts index 46c1e11e2..497e7038e 100644 --- a/hapi/hapi-8.2.0.d.ts +++ b/hapi/hapi-8.2.0.d.ts @@ -1615,6 +1615,8 @@ declare module "hapi" { } });*/ default(options: string):void; + default(options: { strategy: string }): void; + default(options: { strategies: string[] }): void; /** server.auth.scheme(name, scheme) Registers an authentication scheme where: name - the scheme name. diff --git a/hapi/hapi.d.ts b/hapi/hapi.d.ts index 8e8025b78..151f386dd 100644 --- a/hapi/hapi.d.ts +++ b/hapi/hapi.d.ts @@ -1774,6 +1774,8 @@ Notes: 1. Default value. 2. Proposed code, not supported by all clients. */ } });*/ default(options: string): void; + default(options: { strategy: string }): void; + default(options: { strategies: string[] }): void; /** server.auth.scheme(name, scheme) Registers an authentication scheme where: name - the scheme name. From 505037219b90b0a56030f37284db08501cd7a063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Soboci=C5=84ski?= Date: Sat, 19 Mar 2016 14:25:47 +0100 Subject: [PATCH 2/3] fix indentation --- hapi/hapi-8.2.0.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hapi/hapi-8.2.0.d.ts b/hapi/hapi-8.2.0.d.ts index 497e7038e..88264b7d5 100644 --- a/hapi/hapi-8.2.0.d.ts +++ b/hapi/hapi-8.2.0.d.ts @@ -237,7 +237,7 @@ declare module "hapi" { (result: string|number|boolean|Buffer|stream.Stream | Promise | T): Response; /** Returns control back to the framework without setting a response. If called in the handler, the response defaults to an empty payload with status code 200. - * The data argument is only used for passing back authentication data and is ignored elsewhere. */ + * The data argument is only used for passing back authentication data and is ignored elsewhere. */ continue(credentialData?: any): void; /** Transmits a file from the file system. The 'Content-Type' header defaults to the matching mime type based on filename extension. The response flow control rules do not apply. */ @@ -1615,8 +1615,8 @@ declare module "hapi" { } });*/ default(options: string):void; - default(options: { strategy: string }): void; - default(options: { strategies: string[] }): void; + default(options: { strategy: string }): void; + default(options: { strategies: string[] }): void; /** server.auth.scheme(name, scheme) Registers an authentication scheme where: name - the scheme name. From 8ed1a6e27d3fc84c9de9eb31d83ac6cf5adaa12d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Soboci=C5=84ski?= Date: Sat, 19 Mar 2016 14:27:59 +0100 Subject: [PATCH 3/3] fix indentation --- hapi/hapi-8.2.0.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hapi/hapi-8.2.0.d.ts b/hapi/hapi-8.2.0.d.ts index 88264b7d5..f1db2660e 100644 --- a/hapi/hapi-8.2.0.d.ts +++ b/hapi/hapi-8.2.0.d.ts @@ -237,7 +237,7 @@ declare module "hapi" { (result: string|number|boolean|Buffer|stream.Stream | Promise | T): Response; /** Returns control back to the framework without setting a response. If called in the handler, the response defaults to an empty payload with status code 200. - * The data argument is only used for passing back authentication data and is ignored elsewhere. */ + * The data argument is only used for passing back authentication data and is ignored elsewhere. */ continue(credentialData?: any): void; /** Transmits a file from the file system. The 'Content-Type' header defaults to the matching mime type based on filename extension. The response flow control rules do not apply. */