Add initial RBS support with Steep and TypeProf
This commit is contained in:
9
sig/vendor/event_emitter.rbs
vendored
Normal file
9
sig/vendor/event_emitter.rbs
vendored
Normal 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
|
||||
Reference in New Issue
Block a user