feat: refactor imports

This commit is contained in:
janishutz committed 2026-09-21 17:09:42 +02:00
1 parent e3d1bd7a62
commit b08532e89a
4 files changed
+33 -23

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
# OIDC Login SDK Browser
To get completion for the `autherror` event, in the global types file, add the below snippet.
```typescript
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:
```json
{
"compilerOptions": {
"typeRoots": [
"./relative/path/to/global.d.ts"
]
}
}
```