Add ': void' to non returning functions (error TS7014)
This commit is contained in:
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user