UNPKG

859 BTypeScriptView Raw
1declare type FilterOpts = {
2 hideFields: {
3 [fieldPath: string]: string;
4 };
5 hideFieldsNote?: string;
6};
7declare type PathsFilter = string | string[];
8export declare function filterByDotPaths(obj: Record<any, any>, pathsFilter?: PathsFilter | null, opts?: FilterOpts): Record<any, any>;
9export declare function preparePathsFilter(pathsFilter: PathsFilter | null | undefined): string[] | null;
10export declare function hideComplexValue(val: any, msg?: string): string;
11export declare function isPresentInDotFilter(name: string, pathsFilter?: string | string[] | null): boolean;
12export declare function partialCloneSubpath(res: any, path: string[]): void;
13export declare function hideField(result: Record<any, any>, key: string, msg?: string, pathsFilter?: PathsFilter | null): string[];
14export {};
15//# sourceMappingURL=filterByDotPaths.d.ts.map
\No newline at end of file