Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
penpenpng committed Jun 27, 2023
1 parent 4e24769 commit 79cda8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ npm install -D nostr-typedef
```

```ts
import Nostr from 'nostr-typedef';
import * as Nostr from "nostr-typedef";

// You can use type definitions in your application:
const message: Nostr.ToRelayMessage.REQ = ["REQ", 'subId', { kinds: [0] }];
const message: Nostr.ToRelayMessage.REQ = ["REQ", "subId", { kinds: [0] }];
```

0 comments on commit 79cda8d

Please sign in to comment.