23 lines
579 B
TypeScript
23 lines
579 B
TypeScript
import { APIResponseObject, DsqlCrudQueryObject } from "../../types";
|
|
type Params<T extends {
|
|
[key: string]: any;
|
|
} = {
|
|
[key: string]: any;
|
|
}> = {
|
|
dbName: string;
|
|
tableName: string;
|
|
query?: DsqlCrudQueryObject<T>;
|
|
targetId?: string | number;
|
|
apiKey?: string;
|
|
/**
|
|
* # Query datasquirel.com
|
|
*/
|
|
useDefault?: boolean;
|
|
};
|
|
export default function apiCrudGET<T extends {
|
|
[key: string]: any;
|
|
} = {
|
|
[key: string]: any;
|
|
}>({ dbName, tableName, query, targetId, apiKey, useDefault, }: Params<T>): Promise<APIResponseObject>;
|
|
export {};
|