fixed typescript issues

This commit is contained in:
Simon Seyock
2019-09-25 14:00:59 +02:00
parent b7ae47c4b7
commit bb0b94fedf
15 changed files with 132 additions and 72 deletions

View File

@@ -345,13 +345,12 @@ export const OBJECT_PROPERTY_NODE_FACTORY = makeSimpleNodeFactory();
* Create an array of `values` to be used with {@link module:ol/xml~serialize} or
* {@link module:ol/xml~pushSerializeAndPop}, where `orderedKeys` has to be provided as
* `opt_key` argument.
* @param {Object<string, V>} object Key-value pairs for the sequence. Keys can
* @param {Object<string, *>} object Key-value pairs for the sequence. Keys can
* be a subset of the `orderedKeys`.
* @param {Array<string>} orderedKeys Keys in the order of the sequence.
* @return {Array<V>} Values in the order of the sequence. The resulting array
* @return {Array<*>} Values in the order of the sequence. The resulting array
* has the same length as the `orderedKeys` array. Values that are not
* present in `object` will be `undefined` in the resulting array.
* @template V
*/
export function makeSequence(object, orderedKeys) {
const length = orderedKeys.length;