mindee
Version:
Mindee Client Library for Node.js
32 lines (31 loc) • 989 B
TypeScript
import { StringDict } from "../common";
import { StringField } from "../standard";
import { GeneratedObjectField } from "./generatedObject";
export interface GeneratedListFieldConstructor {
prediction: StringDict[];
pageId?: number;
}
/**
* A list of values or objects, used in generated APIs.
*/
export declare class GeneratedListField {
/** Id of the page the object was found on. */
pageId?: number;
/** List of word values. */
values: Array<GeneratedObjectField | StringField>;
constructor({ prediction, pageId, }: GeneratedListFieldConstructor);
/**
* Returns an array of the contents of all values.
*/
contentsList(): string[];
/**
* Return a string representation of all values.
* @param separator Character(s) to use when concatenating fields.
* @returns string representation.
*/
contentsString(separator?: string): string;
/**
* Default string representation.
*/
toString(): string;
}