dat-ecosystem / dat

:floppy_disk: peer-to-peer sharing & live syncronization of files via command line
https://dat.foundation
BSD 3-Clause "New" or "Revised" License
8.24k stars 449 forks source link

TypeScript external projects support #921

Closed carloslfu closed 4 years ago

carloslfu commented 6 years ago

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 a types field in the package.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.

joehand commented 6 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.

carloslfu commented 6 years ago

Yes it would be better

carloslfu commented 6 years ago

I can work on the PR

okdistribute commented 4 years ago

Thanks, can you open this on dat-node or even better, Hypercore or Hyperdrive?