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

18
sig/vendor/event_machine/channel.rbs vendored Normal file
View File

@@ -0,0 +1,18 @@
# Added only to satisfy the Steep requirements. Not 100% reliable.
module EventMachine
class Channel
@subs: Hash[untyped, untyped]
@uid: Integer
def initialize: -> void
def num_subscribers: -> Integer
def subscribe: (*untyped a) ?{ -> untyped } -> Integer
def unsubscribe: (untyped name) -> untyped
def push: (*untyped items) -> untyped
alias << push
def pop: (*untyped a) -> untyped
private
def gen_id: -> Integer
end
end