UNPKG

md-curcuma

Version:

A Typescript library for transporting and converting markdown and other data.

29 lines (28 loc) 1.01 kB
import { Observable, Observer_Command_Type, Observer_Interface, Observer_Props, Observer_Type } from "../core/observer"; import { IO_Interface, IOable } from "./types"; export interface XLSX_Mapping_Item { sheet_name: string; source_property_name: string; target_poperty_name: string; } export interface XLSX_Transporter_Parameter_Type<T> extends IOable { readPath: string; writePath: string; simulate: boolean; doSubfolders: boolean; limit: number; useCounter: boolean; json_template: T; commands?: Observer_Command_Type[]; onPartialResult?: (value: T) => void; } export declare class XLSX_IO<D> implements IO_Interface<D>, Observable<D> { private observer_subject; private props; constructor(props: XLSX_Transporter_Parameter_Type<D>); add_observer(observer: Observer_Interface<D>, id: Observer_Type): void; notify_all(props: Observer_Props<D>): void; notify(props: Observer_Props<D>): void; read(): void; write(dao: D): void; }