Frontend/25_02_24/node_modules/json-server/lib/observer.d.ts

12 lines
315 B
TypeScript
Raw Normal View History

2025-02-25 08:55:29 +00:00
import { Adapter } from 'lowdb';
export declare class Observer<T> {
#private;
onReadStart: () => void;
onReadEnd: (data: T | null) => void;
onWriteStart: () => void;
onWriteEnd: () => void;
constructor(adapter: Adapter<T>);
read(): Promise<T | null>;
write(arg: T): Promise<void>;
}