@safient/core
Version:
JavaScript SDK to manage safes and interact with Safient protocol.
10 lines (9 loc) • 505 B
TypeScript
import { Connection, Safe, User } from "../../lib/types";
export declare class ThreadDB {
private connection;
constructor(connectionObject: Connection);
threadCreate: (data: any, collection: string) => Promise<string[]>;
threadSave: (data: any, collection: string) => Promise<boolean>;
threadDelete: (data: any, collection: string) => Promise<boolean>;
threadRead: <T extends User | Safe>(queryVariable: string, queryValue: string | boolean, collection: string) => Promise<T[]>;
}