fix type def
This commit is contained in:
parent
9a62bd2905
commit
141c698351
9
index.js
9
index.js
@ -109,14 +109,19 @@ function check_filters (filters, e, or = false) {
|
||||
* @type {object}
|
||||
* @property {string|string[]} field - fields to apply filter on
|
||||
* @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
|
||||
*
|
||||
* @param {Array<object>} input
|
||||
* @param {Filter[]} filters
|
||||
* @param {(Filter|FilterOrGroup)[]} filters
|
||||
* @returns {Array<object>} filtered data
|
||||
*/
|
||||
function recursive_filter (input, filters, children_key = 'children') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user