Restore old instance types (but deprecated)

This commit is contained in:
Jon Koops 2022-02-16 11:55:39 +01:00 committed by Bruno Oliveira da Silva
parent 542415dc4d
commit c7ede9971b
2 changed files with 10 additions and 0 deletions

View file

@ -82,6 +82,11 @@ export interface ResourcePermission {
scopes?:string[]
}
/**
* @deprecated Instead of importing 'KeycloakAuthorizationInstance' you can import 'KeycloakAuthorization' directly as a type.
*/
export type KeycloakAuthorizationInstance = KeycloakAuthorization;
export default class KeycloakAuthorization {
/**
* Creates a new Keycloak client instance.

View file

@ -321,6 +321,11 @@ export interface KeycloakRoles {
roles: string[];
}
/**
* @deprecated Instead of importing 'KeycloakInstance' you can import 'Keycloak' directly as a type.
*/
export type KeycloakInstance = Keycloak;
/**
* A client for the Keycloak authentication server.
* @see {@link https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/javascript-adapter.html|Keycloak JS adapter documentation}