UNPKG

md-curcuma

Version:

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

21 lines (20 loc) 709 B
import { Observable, Observer_Interface, Observer_Props, Observer_Type } from "../core/observer"; import { IO_Interface } from "./types"; export interface Json_IO_Props_Interface { readPath: string; writePath: string; simulate: boolean; doSubfolders: boolean; limit: number; useCounter: boolean; } export declare class Json_IO<D> implements IO_Interface<D>, Observable<D> { private observer_subject; private props; constructor(props: Json_IO_Props_Interface); 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; }