From ed90884fddb31e2d3643ffda95a8ad0a9656583d Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 13 Dec 2024 14:44:34 +0100 Subject: [PATCH] rename params --- putTypesInIndex.js | 2 +- src/types/ImageGetParams.ts | 4 ++-- src/types/ImageProxyParams.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/putTypesInIndex.js b/putTypesInIndex.js index 8d41ef8..4a30b48 100644 --- a/putTypesInIndex.js +++ b/putTypesInIndex.js @@ -5,7 +5,7 @@ const exportRegex = /export\s+(?:enum|interface|type)\s+([A-Za-z0-9_]+)/g; const baseExports = [ 'export * from "./http";', - 'export {UploadImage,UploadImageResponse,ImageFile,DeleteImage} from "./other_types";', + 'export {UploadImage} from "./other_types";', ]; async function putTypesInIndex() { diff --git a/src/types/ImageGetParams.ts b/src/types/ImageGetParams.ts index c2dbfab..1a7daf8 100644 --- a/src/types/ImageGetParams.ts +++ b/src/types/ImageGetParams.ts @@ -1,6 +1,6 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. export type ImageGetParams = { - format: string | null; - thumbnail: number | null; + file_type: string | null; + max_size: number | null; }; diff --git a/src/types/ImageProxyParams.ts b/src/types/ImageProxyParams.ts index 1552bbc..22d0737 100644 --- a/src/types/ImageProxyParams.ts +++ b/src/types/ImageProxyParams.ts @@ -2,6 +2,6 @@ export type ImageProxyParams = { url: string; - format: string | null; - thumbnail: number | null; + file_type: string | null; + max_size: number | null; };