Closed carloslfu closed 4 years ago
It seems like this may be a better fit at a PR to the dat-node repo? The Dat JS API is exported directly from there.
Yes it would be better
I can work on the PR
Thanks, can you open this on dat-node or even better, Hypercore or Hyperdrive?
TypeScript external support as so many JS libraries does implies to include a
dat.d.ts
file in the published npm files. For example Electron project puts an electron.d.ts type definition file in the npm registry, and add atypes
field in thepackage.json
with the file name. Other method is to publish to the DefinetlyTyped repo a@types/dat
folder with the type definitions. As described here.