TypeScript definitions (#18)

This commit is contained in:
Lennon Day-Reynolds
2022-07-15 11:49:49 -07:00
committed by GitHub
parent 2f7e3f8473
commit 821a8f7895
11 changed files with 195 additions and 12 deletions

View File

@@ -84,6 +84,10 @@ You can import nostr-tools as an ES module. Just add a script tag like this:
And import whatever function you would import from `"nostr-tools"` in a bundler.
## TypeScript
This module has hand-authored TypeScript declarations. `npm run check-ts` will run a lint-check script to ensure the typings can be loaded and call at least a few standard library functions. It's not at all comprehensive and likely to contain bugs. Issues welcome; tag @rcoder as needed.
## License
Public domain.