From f1983d1aa500bb0fb71a8e0d00af3075678bff20 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Thu, 26 Jun 2025 12:02:25 +0900 Subject: [PATCH] Update type from UploaderDialogFeatures to UploaderFeatures Replaces the UploaderDialogFeatures type with UploaderFeatures in the select function and SelectFileOptions type to ensure consistency and correct type usage. --- packages/frontend/src/utility/drive.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/utility/drive.ts b/packages/frontend/src/utility/drive.ts index 47876259a9..f2f491b3fd 100644 --- a/packages/frontend/src/utility/drive.ts +++ b/packages/frontend/src/utility/drive.ts @@ -228,7 +228,7 @@ export function chooseFileFromUrl(): Promise { }); } -function select(anchorElement: HTMLElement | EventTarget | null, label: string | null, multiple: boolean, features?: UploaderDialogFeatures): Promise { +function select(anchorElement: HTMLElement | EventTarget | null, label: string | null, multiple: boolean, features?: UploaderFeatures): Promise { return new Promise((res, rej) => { os.popupMenu([label ? { text: label, @@ -253,7 +253,7 @@ type SelectFileOptions = { anchorElement: HTMLElement | EventTarget | null; multiple: M; label?: string | null; - features?: UploaderDialogFeatures; + features?: UploaderFeatures; }; export async function selectFile<