keycloak property has type any
jenny-s51 opened this issue · 4 comments
jenny-s51 commented
Describe the bug
A clear and concise description of what the bug is.
See https://github.com/keycloak/keycloak-admin-ui/pull/896#discussion_r684386959
To Reproduce
Steps to reproduce the behavior:
- Search
adminClient.keycloak
in the new admin console repo - See that the type of
keycloak
is identified asKeycloakAdminClient.keycloak: any
edewit commented
This is because we don't want to import the keycloak-js statically as it will make this package not usable in node. Under normal usage you wouldn't need to access this property
jonkoops commented
We can still only import the type using a type-only import perhaps?
Something like:
import type { KeycloakInstance } from 'keycloak-js'
export type Foo {
keycloak: KeycloakInstance
}
edewit commented
right if that works that would be great