From 3f7d32d1ae5516718e67da234b2ac87a61ab5ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20R=C3=B8nning?= Date: Wed, 10 Apr 2019 19:27:02 +0200 Subject: [PATCH] KEYCLOAK-10026: Add missing TypeScript definition for init options --- adapters/oidc/js/src/main/resources/keycloak.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/adapters/oidc/js/src/main/resources/keycloak.d.ts b/adapters/oidc/js/src/main/resources/keycloak.d.ts index 3f26cb4d68..9fb84e9b3b 100644 --- a/adapters/oidc/js/src/main/resources/keycloak.d.ts +++ b/adapters/oidc/js/src/main/resources/keycloak.d.ts @@ -34,6 +34,7 @@ declare namespace Keycloak { type KeycloakResponseMode = 'query'|'fragment'; type KeycloakResponseType = 'code'|'id_token token'|'code id_token token'; type KeycloakFlow = 'standard'|'implicit'|'hybrid'; + type KeycloakPromiseType = 'native' interface KeycloakInitOptions { /** @@ -109,6 +110,13 @@ declare namespace Keycloak { * @default standard */ flow?: KeycloakFlow; + + /** + * Set the promise type. If set to `'native'` all methods returning a promise + * will return a native JavaScript promise. If not set will return + * Keycloak specific promise objects. + */ + promiseType?: KeycloakPromiseType; } interface KeycloakLoginOptions {