fix type def

This commit is contained in:
Timo Hocker 2020-06-30 10:13:17 +02:00
parent 9a62bd2905
commit 141c698351

View File

@ -109,14 +109,19 @@ function check_filters (filters, e, or = false) {
* @type {object} * @type {object}
* @property {string|string[]} field - fields to apply filter on * @property {string|string[]} field - fields to apply filter on
* @property {RegExp} filter - filter * @property {RegExp} filter - filter
* @property {Filter[]} or - create an OR group of filters */
/**
* @typedef FilterOrGroup
* @type {object}
* @property {(Filter|FilterOrGroup)[]} or - create an OR group of filters
*/ */
/** /**
* filter nested objects * filter nested objects
* *
* @param {Array<object>} input * @param {Array<object>} input
* @param {Filter[]} filters * @param {(Filter|FilterOrGroup)[]} filters
* @returns {Array<object>} filtered data * @returns {Array<object>} filtered data
*/ */
function recursive_filter (input, filters, children_key = 'children') { function recursive_filter (input, filters, children_key = 'children') {