@openshift-console/dynamic-plugin-sdk-webpack
Version:
Provides webpack ConsoleRemotePlugin used to build all dynamic plugin assets.
7 lines (6 loc) • 413 B
TypeScript
export type ValueCallback<T> = (value: T, key: string, container: {}, path: string) => void;
export type PredicateCheck<T> = (value: unknown, path: string) => value is T;
/**
* Recursive equivalent of `_.forOwn` function that traverses plain objects and arrays.
*/
export declare const deepForOwn: <T = any>(obj: {}, predicate: PredicateCheck<T>, valueCallback: ValueCallback<T>, pathParts?: string[]) => void;