Frontend/25_02_24/node_modules/json-server/lib/observer.d.ts
2025-02-25 09:55:29 +01:00

12 lines
315 B
TypeScript

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>;
}