1
0
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:
tobspr
2020-05-14 08:44:07 +02:00
parent ca3f4ff02a
commit cf5d776270
9 changed files with 53 additions and 52 deletions

View File

@@ -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;