From b61528ed5bb53d0ea08fc6e48baf39b2d244eb9e Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 18 Sep 2017 12:48:28 -0700 Subject: [PATCH] adal: Fix export style (#19838) --- types/adal/index.d.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/types/adal/index.d.ts b/types/adal/index.d.ts index 43655efbbb..a51933b734 100644 --- a/types/adal/index.d.ts +++ b/types/adal/index.d.ts @@ -8,7 +8,8 @@ declare var AuthenticationContext: adal.AuthenticationContextStatic; declare var Logging: adal.Logging; declare module 'adal' { - export = { AuthenticationContext, Logging }; + export const AuthenticationContext: adal.AuthenticationContextStatic; + export const Logging: adal.Logging; } declare namespace adal { @@ -47,15 +48,15 @@ declare namespace adal { stateResponse: string; requestType: string; } - + interface Logging { log: (message: string) => void; level: LoggingLevel; } - + enum LoggingLevel { ERROR = 0, - WARNING = 1, + WARNING = 1, INFO = 2, VERBOSE = 3 } @@ -67,7 +68,7 @@ declare namespace adal { interface AuthenticationContext { instance: string; - config: Config; + config: Config; /** * Gets initial Idtoken for the app backend @@ -162,7 +163,7 @@ declare namespace adal { getResourceForEndpoint(endpoint: string): string; /** - * Handles redirection after login operation. + * Handles redirection after login operation. * Gets access token from url and saves token to the (local/session) storage * or saves error in case unsuccessful login. */