Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #10

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading