Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
akiomik committed Jan 8, 2024
1 parent 5102fbc commit 718a7c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# nostr-typedef

**nostr-typdef** provides domain-specific type definitions (and useful doc comments) that are often needed to develop Nostr application with TypeScript.
**nostr-typedef** provides domain-specific type definitions (and useful doc comments) that are often needed to develop Nostr application with TypeScript.
It doesn't contain any implementations, but contains only type definitions.
Therefore, it doesn't affect the bundle size of your application at all.

Expand Down
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export namespace Tag {
/**
* See [NIP-42](https://github.com/nostr-protocol/nips/blob/master/42.md).
*/
export type relay = [tagNmae: "relay", relayUrl: string];
export type relay = [tagName: "relay", relayUrl: string];

/**
* See [NIP-42](https://github.com/nostr-protocol/nips/blob/master/42.md).
Expand Down Expand Up @@ -419,7 +419,7 @@ export namespace Content {

/**
* Content of Kind40-44.
* Metadata of a Publich Chat channel.
* Metadata of a Public Chat channel.
*
* See also [NIP-28](https://github.com/nostr-protocol/nips/blob/master/28.md).
*/
Expand Down Expand Up @@ -502,7 +502,7 @@ export type NostrConnectMethod = keyof NostrConnectPayloadMap;

/** JSON messages sent from clients to relays via WebSocket, and related types. */
export namespace ToRelayMessage {
/** Possbile messages from relays to clients. */
/** Possible messages from relays to clients. */
export type Any = AUTH | CLOSE | COUNT | EVENT | REQ;
/** Message type, which is put at the first of message tuples. */
export type Type = Any[0];
Expand All @@ -525,7 +525,7 @@ export namespace ToRelayMessage {

/** JSON messages sent from relays to clients via WebSocket, and related types. */
export namespace ToClientMessage {
/** Possbile messages from clients to relays. */
/** Possible messages from clients to relays. */
export type Any = AUTH | COUNT | EOSE | EVENT | CLOSED | NOTICE | OK;
/** Message type, which is put at the first of message tuples. */
export type Type = Any[0];
Expand Down

0 comments on commit 718a7c6

Please sign in to comment.