From ab59a5b659e87cc3053f729634a79a8048e631f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=93=E3=81=91=E3=81=A3=E3=81=A1?= Date: Fri, 11 Mar 2022 22:45:03 +0900 Subject: [PATCH] fix: dont export select-file-enc.ts --- packages/client/src/scripts/select-file-enc.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/client/src/scripts/select-file-enc.ts b/packages/client/src/scripts/select-file-enc.ts index 529e9d0a9..f7dc8bccd 100644 --- a/packages/client/src/scripts/select-file-enc.ts +++ b/packages/client/src/scripts/select-file-enc.ts @@ -4,7 +4,7 @@ import { stream } from '@/stream'; import { i18n } from '@/i18n'; import { defaultStore } from '@/store'; import { DriveFile } from 'misskey-js/built/entities'; -import VideoConverter from 'convert-video'; +import { VideoConverter } from 'convert-video'; function select(src: any, label: string | null, multiple: boolean): Promise { return new Promise((res, rej) => { @@ -100,10 +100,10 @@ function select(src: any, label: string | null, multiple: boolean): Promise { +export function selectFileEnc(src: any, label: string | null = null): Promise { return select(src, label, false) as Promise; } -export function selectFiles(src: any, label: string | null = null): Promise { +export function selectFilesEnc(src: any, label: string | null = null): Promise { return select(src, label, true) as Promise; }