Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
penpenpng authored Jun 25, 2023
1 parent 9dacb25 commit 51a0025
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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] }];
```

0 comments on commit 51a0025

Please sign in to comment.