jeet-kiit-crud
Version:
A simple CRUD client npm package using API key + Postgres
22 lines (20 loc) • 558 B
text/typescript
type CrudClientConfig = {
apiKey: string;
apiUrl: string;
API_TODO_URL: string;
};
declare function CrudLibrary({ apiKey, apiUrl, API_TODO_URL }: CrudClientConfig): {
create(data: {
value: string;
txHash: string;
}): Promise<any>;
get(id: string): Promise<any>;
getAll(): Promise<any>;
getCredits(): Promise<any>;
getCreditLimit(): Promise<any>;
update(id: string, data: {
value: string;
}): Promise<any>;
remove(id: string): Promise<any>;
};
export { CrudClientConfig, CrudLibrary };