@nu-art/db-api-generator
Version:
db-api-generator
8 lines (7 loc) • 421 B
TypeScript
import { DB_Object } from '@nu-art/ts-common';
import { MultiApiEvent, SingleApiEvent } from '../types';
import { ModuleFE_BaseDB } from './ModuleFE_BaseDB';
export type ApiCallerEventType<DBType extends DB_Object> = [SingleApiEvent, DBType] | [MultiApiEvent, DBType[]];
export interface OnSyncStatusChangedListener<DBType extends DB_Object> {
__onSyncStatusChanged: (module: ModuleFE_BaseDB<DBType, any>) => void;
}