18 lines
561 B
TypeScript
18 lines
561 B
TypeScript
import type { BunMariaDBConfig, DBResponseObject, 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?: BunMariaDBConfig;
|
|
};
|
|
export default function DbDelete<Schema extends {
|
|
[k: string]: any;
|
|
} = {
|
|
[k: string]: any;
|
|
}, Table extends string = string>({ table, query, targetId, config, }: Params<Schema, Table>): Promise<DBResponseObject>;
|
|
export {};
|