Commit Graph

2 Commits

Author SHA1 Message Date
Jannchie
74a0a5a234
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.
2021-01-13 16:33:30 +09:00
Narazaka
b89adcfbac add TypeScript definition 2020-11-04 18:50:36 +09:00