mindee
Version:
Mindee Client Library for Node.js
19 lines (18 loc) • 657 B
TypeScript
import { Field } from "./field";
import { BaseFieldConstructor } from "./base";
/**
* A field containing a date value.
*/
export declare class DateField extends Field {
/** Date string in ISO format. */
value?: string;
/** Date as a standard JavaScript `Date` object. */
dateObject?: Date;
/** Whether the field was computed or retrieved directly from the document. */
isComputed?: boolean;
/**
* @param {BaseFieldConstructor} constructor Constructor parameters.
*/
constructor({ prediction, valueKey, reconstructed, pageId, }: BaseFieldConstructor);
static compareDates(date1: Date, date2: Date): boolean;
}