semantic-analysis
Version:
Extensible semantic Structured Data analysis library for Microdata and JSON-LD
23 lines (22 loc) • 678 B
TypeScript
import { IExtractionResult } from '../structured-data/extraction';
import { IResultSimple } from '../structured-data/item';
export interface IExportable {
results: IResultSimple;
url?: string;
}
export interface IExportInfo {
json: string;
html: string;
}
export interface IExported extends IExportable {
paths: IExportInfo;
}
export interface IExportFailed extends IExported {
error: any;
}
export declare const prepareExport: (result: IExtractionResult) => IExportable;
export default class Exporter {
readonly extractionDirectory: string;
constructor(extractionDirectory: string);
export(results: IExtractionResult): Promise<IExported>;
}