md-curcuma
Version:
A Typescript library for transporting and converting markdown and other data.
34 lines (33 loc) • 1.17 kB
TypeScript
import { Observable, Observable_Type, Observer_Command_Type, Observer_Interface, Observer_Props, Observer_Type } from "../core/observer";
import { IO_Interface, IO_Meta_Interface } from "./types";
export declare class IO_Meta implements IO_Meta_Interface {
file_list_reader: string[];
file_name_reader: string;
file_list_writer: string[];
file_name_writer: string;
}
export declare class IO_Observer_Props<D> implements Observer_Props<D> {
from: Observable_Type;
to: Observer_Type;
command: Observer_Command_Type;
dao: D;
io_meta: IO_Meta_Interface;
}
export interface Markdown_IO_Props_Interface {
readPath: string;
writePath: string;
simulate: boolean;
doSubfolders: boolean;
limit: number;
useCounter: boolean;
}
export declare class Markdown_IO<D> implements IO_Interface<D>, Observable<D> {
private observer_subject;
private props;
constructor(props: Markdown_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;
}