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

9
sig/vendor/event_emitter.rbs vendored Normal file
View File

@@ -0,0 +1,9 @@
# Added only to satisfy the Steep requirements. Not 100% reliable.
module EventEmitter
def add_listener: (untyped `type`, ?{once: true} params) -> Integer
alias on add_listener
def remove_listener: (untyped id_or_type) -> Array[untyped]?
def emit: (untyped `type`, *untyped data) -> Array[untyped]
def once: (untyped `type`) -> Integer
end