diff --git a/libs/client/src/index.ts b/libs/client/src/index.ts index 7f4cdfa..7d1d611 100644 --- a/libs/client/src/index.ts +++ b/libs/client/src/index.ts @@ -1,6 +1,5 @@ export { config, getConfig } from './config'; export { storageImpl as storage } from './storage'; -export type { UploadOptions } from './storage'; export { queue, run, subscribe } from './function'; export { withMiddleware, withProxy } from './middleware'; export type { RequestMiddleware } from './middleware'; diff --git a/libs/client/src/storage.ts b/libs/client/src/storage.ts index 5cd4be7..5229500 100644 --- a/libs/client/src/storage.ts +++ b/libs/client/src/storage.ts @@ -1,7 +1,6 @@ import { getConfig } from './config'; import { dispatchRequest } from './request'; - /** * File support for the client. This interface establishes the contract for * uploading files to the server and transforming the input to replace file @@ -55,7 +54,10 @@ async function initiateUpload(file: Blob): Promise { return await dispatchRequest( 'POST', 'https://rest.daniel.shark.fal.ai/storage/upload/initiate', - { file_name: file.name, content_type: file.type || 'application/octet-stream' } + { + file_name: file.name, + content_type: file.type || 'application/octet-stream', + } ); } @@ -70,7 +72,7 @@ export const storageImpl: StorageSupport = { body: file, headers: { 'Content-Type': file.type || 'application/octet-stream', - } + }, }); const { responseHandler } = getConfig(); await responseHandler(response);