waterbase
Version:
SDK for waterbase-server
24 lines (23 loc) • 587 B
TypeScript
import Client from '../Client';
import { Documents } from '../models/Documents';
declare class Document implements Documents {
#private;
id: string;
data: object;
constructor(client: Client, collection: string, id?: string, data?: object);
/**
* Updates the selected doc
*
* @param update object
*
* @return Promise<any>
*/
update: (update: object) => Promise<unknown>;
/**
* Deletes the selected doc
*
* @return Promise<any>
*/
delete: () => Promise<unknown>;
}
export = Document;