export interface JadOptions { tableName: string; } export interface JadConfig { jadDbPath: string; jadDbName?: string; } export interface JadItem { _id: string; [key: string]: any; } export type JadTable = JadItem[]; export interface JadDatabase { [key: string]: JadTable; } export type JadGetData = Promise; export type JadCreate = Promise; export type JadGet = Promise; export type JadGetById = Promise; export type JadUpdate = Promise; export type JadDeleteById = Promise; export interface Jad { create(object: object): JadCreate; get(): JadGet; getById(id: string): JadGetById; update(id: string, object: object): JadUpdate; deleteById(id: string): JadDeleteById; }