From 51a0025c9f33fade017a414891868605e6347347 Mon Sep 17 00:00:00 2001 From: penpenpng Date: Mon, 26 Jun 2023 04:17:12 +0900 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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] }]; +```