Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
32 lines
965 B
Plaintext
32 lines
965 B
Plaintext
import type { FetchAPIFileUploadOptions } from '../../config/types.js';
|
|
import { APIError } from '../../errors/APIError.js';
|
|
export type FileShape = {
|
|
data: Buffer;
|
|
encoding: string;
|
|
md5: Buffer | string;
|
|
mimetype: string;
|
|
mv: (filePath: string, callback: () => void) => Promise<void> | void;
|
|
name: string;
|
|
size: number;
|
|
tempFilePath: string;
|
|
truncated: boolean;
|
|
};
|
|
type FetchAPIFileUploadResponseFile = {
|
|
data: Buffer;
|
|
mimetype: string;
|
|
name: string;
|
|
size: number;
|
|
tempFilePath?: string;
|
|
};
|
|
export type FetchAPIFileUploadResponse = {
|
|
error?: APIError;
|
|
fields: Record<string, string>;
|
|
files: Record<string, FetchAPIFileUploadResponseFile>;
|
|
};
|
|
type FetchAPIFileUpload = (args: {
|
|
options?: FetchAPIFileUploadOptions;
|
|
request: Request;
|
|
}) => Promise<FetchAPIFileUploadResponse>;
|
|
export declare const processMultipartFormdata: FetchAPIFileUpload;
|
|
export {};
|
|
//# sourceMappingURL=index.d.ts.map |