orbit-db-types
orbit-db-types copied to clipboard
Testing
From @rigwild's comment in #24:
What you could do is to write a simple TypeScript program that makes use of tested types and check if it compiles successfully without errors/warnings.
I just found out about https://github.com/SamVerschueren/tsd which is exactly what you may be looking for.
Just checked it out in more detail and yes! This is exactly it. It would be most useful, I think, if it was part of the orbitdb/orbit-db testing pipeline to make sure these are always up to date with whatever is in the orbitdb/orbit-db#master branch
Edit: Probably not locally, but as part of automated CI via CircleCI or GitHub Actions