18 lines
561 B
TypeScript
18 lines
561 B
TypeScript
import type { APIResponseObject, BunSQLiteConfig, ServerQueryParam } from "../../types";
|
|
type Params<Schema extends {
|
|
[k: string]: any;
|
|
} = {
|
|
[k: string]: any;
|
|
}, Table extends string = string> = {
|
|
table: Table;
|
|
query?: ServerQueryParam<Schema>;
|
|
targetId?: number | string;
|
|
config?: BunSQLiteConfig;
|
|
};
|
|
export default function DbDelete<Schema extends {
|
|
[k: string]: any;
|
|
} = {
|
|
[k: string]: any;
|
|
}, Table extends string = string>({ table, query, targetId, config, }: Params<Schema, Table>): Promise<APIResponseObject>;
|
|
export {};
|