Use keyword arguments for User#create_event

This allows for code completion and fixes another RBS issue
This commit is contained in:
Wilson Silva
2023-11-18 18:06:53 +07:00
parent 2c44ae4ee8
commit 3fffcd1a4e
2 changed files with 21 additions and 16 deletions

View File

@@ -5,14 +5,10 @@ module Nostr
def initialize: (?keypair: KeyPair | nil, ?keygen: Keygen) -> void
def create_event: (
{
pubkey: String,
created_at: Integer,
kind: Integer,
tags: Array[String],
content: String,
created_at: Integer,
}
kind: Integer,
content: String,
?created_at: Integer,
?tags: Array[Array[String]],
) -> Event
private