@blocktion/json-to-table
Version:
A powerful, modular React component for converting JSON data to navigable tables with advanced features like automatic column detection, theming, and sub-table navigation. Part of the Blocktion SaaS project ecosystem.
20 lines (19 loc) • 851 B
TypeScript
export declare class ObjectUtils {
static getNestedValue(obj: unknown, path: string): unknown;
static setNestedValue(obj: unknown, path: string, value: unknown): void;
static getAllKeys(data: unknown[], prefix?: string, maxDepth?: number, currentDepth?: number): Set<string>;
static formatDisplayName(key: string): string;
static calculateWidth(values: unknown[], options?: {
minWidth?: number;
maxWidth?: number;
}): string;
/**
* Merges repeated attributes within objects into arrays
* If an object has the same attribute repeated, those values are merged into an array
*/
static mergeRepeatedAttributes(obj: unknown): unknown;
/**
* Processes an array of objects to merge repeated attributes
*/
static processArrayForRepeatedAttributes(data: unknown[]): unknown[];
}