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
+4 -4
View File
@@ -14,12 +14,12 @@ import {extend} from './array.js';
/**
* @typedef {function(Element, Array<*>)} Parser
* @typedef {function(Element, Array<*>): void} Parser
*/
/**
* @typedef {function(Element, *, Array<*>)} Serializer
* @typedef {function(Element, *, Array<*>): void} Serializer
*/
@@ -252,7 +252,7 @@ export function makeObjectPropertySetter(valueReader, opt_property, opt_this) {
* Create a serializer that appends nodes written by its `nodeWriter` to its
* designated parent. The parent is the `node` of the
* {@link module:ol/xml~NodeStackItem} at the top of the `objectStack`.
* @param {function(this: T, Node, V, Array<*>)} nodeWriter Node writer.
* @param {function(this: T, Node, V, Array<*>): void} nodeWriter Node writer.
* @param {T=} opt_this The object to use as `this` in `nodeWriter`.
* @return {Serializer} Serializer.
* @template T, V
@@ -274,7 +274,7 @@ export function makeChildAppender(nodeWriter, opt_this) {
* designed to serialize a single item. An example would be a LineString
* geometry writer, which could be reused for writing MultiLineString
* geometries.
* @param {function(this: T, Element, V, Array<*>)} nodeWriter Node writer.
* @param {function(this: T, Element, V, Array<*>): void} nodeWriter Node writer.
* @param {T=} opt_this The object to use as `this` in `nodeWriter`.
* @return {Serializer} Serializer.
* @template T, V