@ultipa-graph/ultipa-node-sdk
Version:
NodeJS SDK for ultipa-server 4.0
45 lines (44 loc) • 1.24 kB
TypeScript
import { ULTIPA } from '../types';
export declare function printAnyArray(datas: any[]): void;
export declare function printAttrList(attr: ULTIPA.AttrAlias, datas: any[]): void;
export declare function printAttrObj(attr: ULTIPA.AttrAlias): void;
export declare function printAttr(dataItem?: ULTIPA.DataItem): void;
declare class AttrPrint {
tags: AttrTags;
header: string;
rows: any[];
prints: AttrPrint[];
constructor(init: {
tags: AttrTags;
header: string;
rows: any[];
prints: AttrPrint[];
});
static log(prints: AttrPrint[] | AttrPrint): void;
}
declare class AttrTags {
tags: number[];
constructor();
appendChild(): void;
increase(): void;
clone(): AttrTags;
isEmpty(): boolean;
desc(): string;
}
interface AttrPrintBase {
tags: AttrTags;
}
interface AttrInfoParams extends AttrPrintBase {
returnJson?: boolean;
}
export declare function printAttrStruct(attr: ULTIPA.Attr, result_type: ULTIPA.ResultType, params?: AttrInfoParams): {
json: {
values: any;
type: ULTIPA.PropertyType;
type_desc: string;
has_attr_data: boolean;
has_ultipa_data: boolean;
};
prints: AttrPrint[];
};
export {};