react-json-to-table
Version:
Convert json to HTML <table>
19 lines (18 loc) • 467 B
TypeScript
export declare enum JSONObjectType {
Array = 0,
ObjectWithNonNumericKeys = 1,
Object = 2,
Primitive = 3
}
export interface JSONObjectKeys {
labels: string[];
type: JSONObjectType;
}
export default class JsonToTableUtils {
/**
* Get object type
*/
static getObjectType(obj: any): JSONObjectType;
static checkLabelTypes(labels: any[]): "string" | "number";
static getUniqueObjectKeys(anArray: any[]): JSONObjectKeys;
}