Add initial RBS support with Steep and TypeProf

This commit is contained in:
Wilson Silva
2023-01-22 17:42:59 +07:00
parent 59e058d511
commit 8f6a7547f5
19 changed files with 290 additions and 1 deletions

20
sig/nostr/client.rbs Normal file
View File

@@ -0,0 +1,20 @@
module Nostr
class Client
include EventEmitter
def initialize: -> void
def connect: (Relay relay) -> Thread
def subscribe: (?subscription_id: String, ?filter: Filter) -> Subscription
def unsubscribe: (String subscription_id) -> untyped
def publish: (Event event) -> untyped
private
attr_reader subscriptions: Hash[String, Subscription]
attr_reader parent_to_child_channel: untyped
attr_reader child_to_parent_channel: untyped
def execute_within_an_em_thread: { -> untyped } -> Thread
def initialize_channels: -> untyped
end
end