mirror of
https://github.com/janishutz/oidc-login-sdk.git
synced 2026-10-08 17:36:20 +02:00
OIDC Login SDK Browser
To get completion for the autherror event, in the global types file, add the below snippet.
declare global {
interface GlobalEventHandlersEventMap {
'autherror': CustomEvent<void>
}
}
To define a global types file (i.e. a typeRoot), update your tsconfig.json file with the following:
{
"compilerOptions": {
"typeRoots": [
"./relative/path/to/global.d.ts"
]
}
}