diff --git a/README.md b/README.md index e12f1f1..c951196 100644 --- a/README.md +++ b/README.md @@ -1 +1,12 @@ # nostr-typedef + +```sh +npm install -D nostr-typedef +``` + +```ts +import Nostr from 'nostr-typedef'; + +// You can use type definitions in your application: +const message: Nostr.ToRelayMessage.REQ = ["REQ", 'subId', { kinds: [0] }]; +```