Skip to content

Commit

Permalink
Add DOM lib for docs generation
Browse files Browse the repository at this point in the history
It fixes an error during the docs build:

```
../node_modules/axios/index.d.ts:153:38 - error TS2304: Cannot find name 'ProgressEvent'.
```

Following [this thread](axios/axios#3219) thread, seems that simply adding `DOM` to libs on tsconfig fix the issue:

axios/axios#3219 (comment)
  • Loading branch information
selankon authored and marcvelmer committed May 21, 2024
1 parent 3f85ba0 commit c61694d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// see https://www.typescriptlang.org/tsconfig to better understand tsconfigs
"include": ["../src"],
"compilerOptions": {
"lib": ["esnext"],
"lib": ["esnext", "DOM"],
"allowJs": true,
"target": "esnext",
"resolveJsonModule": true,
Expand Down

0 comments on commit c61694d

Please sign in to comment.