Add ': void' to non returning functions (error TS7014)

This commit is contained in:
Niklas Alt
2018-12-06 19:57:45 +01:00
parent e4e0e61731
commit 4bc9216e41
24 changed files with 34 additions and 34 deletions

View File

@@ -6,7 +6,7 @@ class EventSource {
/**
* @param {import("./PointerEventHandler.js").default} dispatcher Event handler.
* @param {!Object<string, function(Event)>} mapping Event mapping.
* @param {!Object<string, function(Event): void>} mapping Event mapping.
*/
constructor(dispatcher, mapping) {
@@ -18,7 +18,7 @@ class EventSource {
/**
* @private
* @const
* @type {!Object<string, function(Event)>}
* @type {!Object<string, function(Event): void>}
*/
this.mapping_ = mapping;
}