summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-06-26 12:02:25 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-06-26 12:02:25 +0900
commitf1983d1aa500bb0fb71a8e0d00af3075678bff20 (patch)
treebeb7cc22f8d8ae823aeca13b7ff8fbf167b8871b
parentadd note (diff)
downloadmisskey-f1983d1aa500bb0fb71a8e0d00af3075678bff20.tar.gz
misskey-f1983d1aa500bb0fb71a8e0d00af3075678bff20.tar.bz2
misskey-f1983d1aa500bb0fb71a8e0d00af3075678bff20.zip
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.
-rw-r--r--packages/frontend/src/utility/drive.ts4
1 files 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<Misskey.entities.DriveFile> {
});
}
-function select(anchorElement: HTMLElement | EventTarget | null, label: string | null, multiple: boolean, features?: UploaderDialogFeatures): Promise<Misskey.entities.DriveFile[]> {
+function select(anchorElement: HTMLElement | EventTarget | null, label: string | null, multiple: boolean, features?: UploaderFeatures): Promise<Misskey.entities.DriveFile[]> {
return new Promise((res, rej) => {
os.popupMenu([label ? {
text: label,
@@ -253,7 +253,7 @@ type SelectFileOptions<M extends boolean> = {
anchorElement: HTMLElement | EventTarget | null;
multiple: M;
label?: string | null;
- features?: UploaderDialogFeatures;
+ features?: UploaderFeatures;
};
export async function selectFile<