mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Add type hints to signals
This commit is contained in:
@@ -8,7 +8,7 @@ export class Signal {
|
||||
|
||||
/**
|
||||
* Adds a new signal listener
|
||||
* @param {object} receiver
|
||||
* @param {function} receiver
|
||||
* @param {object} scope
|
||||
*/
|
||||
add(receiver, scope = null) {
|
||||
@@ -40,7 +40,7 @@ export class Signal {
|
||||
|
||||
/**
|
||||
* Removes a receiver
|
||||
* @param {object} receiver
|
||||
* @param {function} receiver
|
||||
*/
|
||||
remove(receiver) {
|
||||
let index = null;
|
||||
|
||||
Reference in New Issue
Block a user