Skip to content

Commit

Permalink
add missing typings
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Jun 10, 2023
1 parent d646852 commit 7ea0547
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/helpers/prune-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,19 @@ export function isPruningNeeded(
/**
* Prunes properties of 'root' object
*
* @param {Object} source required, scriptlet properties
* @param {Object} root object which should be pruned or logged
* @param {Array} prunePaths array with string of space-separated properties to remove
* @param {Array} requiredPaths array with string of space-separated properties
* @param source required, scriptlet properties
* @param root object which should be pruned or logged
* @param prunePaths array with string of space-separated properties to remove
* @param requiredPaths array with string of space-separated properties
* which must be all present for the pruning to occur
* @returns {Object} pruned root
* @returns pruned root
*/
export const jsonPruner = (
source: Source,
root: ChainBase,
prunePaths: string[],
requiredPaths: string[],
) => {
): ArbitraryObject => {
if (prunePaths.length === 0 && requiredPaths.length === 0) {
logMessage(source, `${window.location.hostname}\n${JSON.stringify(root, null, 2)}`, true);
if (root && typeof root === 'object') {
Expand Down

0 comments on commit 7ea0547

Please sign in to comment.