nicecode-v2/packages/func/es/upload/index.d.ts
2024-01-16 11:44:26 +08:00

9 lines
306 B
TypeScript

type uploadOption = {
bucket?: string;
dir?: string;
withSuFuffix?: boolean;
};
export declare const commonUpload: (file: File, option: uploadOption | undefined, type: string) => Promise<unknown>;
export declare const upload: (file: File, option?: uploadOption) => Promise<unknown>;
export {};