This commit is contained in:
Benjamin Toby
2025-05-06 06:12:42 +01:00
parent fe2b34d0ee
commit 07c2186b98
4 changed files with 17 additions and 17 deletions
+7 -6
View File
@@ -1,11 +1,12 @@
interface FunctionReturn {
export interface DSQLUploadImageFunctionReturn {
success: boolean;
payload: {
urlPath: string;
urlThumbnailPath: string;
} | null;
payload: DSQLUploadImagePayload | null;
msg?: string;
}
export interface DSQLUploadImagePayload {
urlPath: string;
urlThumbnailPath: string;
}
type Param = {
key?: string;
payload: {
@@ -22,5 +23,5 @@ type Param = {
/**
* # Upload Image via API
*/
export default function uploadImage({ key, payload, user_id, useDefault, }: Param): Promise<FunctionReturn>;
export default function uploadImage({ key, payload, user_id, useDefault, }: Param): Promise<DSQLUploadImageFunctionReturn>;
export {};
-1
View File
@@ -1,5 +1,4 @@
"use strict";
// @ts-check
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {