Skip to content

Commit c7ede99

Browse files
jonkoopsabstractj
authored andcommitted
Restore old instance types (but deprecated)
1 parent 542415d commit c7ede99

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

adapters/oidc/js/dist/keycloak-authz.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ export interface ResourcePermission {
8282
scopes?:string[]
8383
}
8484

85+
/**
86+
* @deprecated Instead of importing 'KeycloakAuthorizationInstance' you can import 'KeycloakAuthorization' directly as a type.
87+
*/
88+
export type KeycloakAuthorizationInstance = KeycloakAuthorization;
89+
8590
export default class KeycloakAuthorization {
8691
/**
8792
* Creates a new Keycloak client instance.

adapters/oidc/js/dist/keycloak.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,11 @@ export interface KeycloakRoles {
321321
roles: string[];
322322
}
323323

324+
/**
325+
* @deprecated Instead of importing 'KeycloakInstance' you can import 'Keycloak' directly as a type.
326+
*/
327+
export type KeycloakInstance = Keycloak;
328+
324329
/**
325330
* A client for the Keycloak authentication server.
326331
* @see {@link https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/javascript-adapter.html|Keycloak JS adapter documentation}

0 commit comments

Comments
 (0)