Commit 3919333
authored
fix: index.d.ts
`fetchFile()` actually is a asyn function. It is automatically encapsulated as a Promise.
Although the current code does not report errors, it misleads TypeScript users into missing the await keyword, which prevents them from reading the file correctly.1 parent bc8db3a commit 3919333
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
0 commit comments