Skip to content

Commit

Permalink
ExportingInfo型を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
sigprogramming committed Dec 27, 2024
1 parent b6edc37 commit 1968035
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Sing/ExportOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,18 @@ import { computed } from "vue";
import { useStore } from "@/store";
import { ExhaustiveError } from "@/type/utility";
type ExportingInfo =
| { nowExporting: false }
| { nowExporting: true; mediaName: "音声" }
| { nowExporting: true; mediaName: "labファイル" };
const store = useStore();
const nowRendering = computed(() => {
return store.state.nowRendering;
});
const exportingInfo = computed(() => {
const exportingInfo = computed((): ExportingInfo => {
if (store.state.exportState === "NOT_EXPORTING") {
return { nowExporting: false };
} else if (store.state.exportState === "EXPORTING_AUDIO") {
Expand Down

0 comments on commit 1968035

Please sign in to comment.