mirror of
https://github.com/janishutz/oidc-login-sdk.git
synced 2026-10-08 17:36:20 +02:00
feat: refactor imports
This commit is contained in:
1 parent
e3d1bd7a62
commit
b08532e89a
4 files changed
+33
-23
No files matched your search
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user