|
|
@@ -2,7 +2,10 @@ export interface ModelBase {
|
|
|
|
|
|
}
|
|
|
|
|
|
+export type Serializable = string | number | null;
|
|
|
+
|
|
|
export interface DatabaseHelper {
|
|
|
runSql(query: string, args?: string[], fetch?: boolean): Promise<any>;
|
|
|
init(allModels: ModelBase): Promise<void>;
|
|
|
+ remove(objectPrototype: ModelBase, where: Record<string, Serializable>): Promise<void>;
|
|
|
}
|