Skip to content

Commit

Permalink
FIX: Errorの型名を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
sabonerune committed Jan 10, 2023
1 parent 5dc0556 commit bd2b4f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/components/Dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Encoding as EncodingType } from "@/type/preload";
import {
AllActions,
SaveResultObject,
WriteErrorTypeForSaveAllResultDialog,
ErrorTypeForSaveAllResultDialog,
} from "@/store/type";
import SaveAllResultDialog from "@/components/SaveAllResultDialog.vue";
import { QVueGlobals } from "quasar";
Expand Down Expand Up @@ -86,8 +86,8 @@ export async function generateAndSaveAllAudioWithDialog({
);

const successArray: Array<string | undefined> = [];
const writeErrorArray: Array<WriteErrorTypeForSaveAllResultDialog> = [];
const engineErrorArray: Array<WriteErrorTypeForSaveAllResultDialog> = [];
const writeErrorArray: Array<ErrorTypeForSaveAllResultDialog> = [];
const engineErrorArray: Array<ErrorTypeForSaveAllResultDialog> = [];

if (result) {
for (const item of result) {
Expand Down
6 changes: 3 additions & 3 deletions src/components/SaveAllResultDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
</template>

<script lang="ts">
import { WriteErrorTypeForSaveAllResultDialog } from "@/store/type";
import { ErrorTypeForSaveAllResultDialog } from "@/store/type";
import { useDialogPluginComponent } from "quasar";
import { defineComponent, PropType } from "vue";
Expand All @@ -65,11 +65,11 @@ export default defineComponent({
required: true,
},
writeErrorArray: {
type: Array as PropType<WriteErrorTypeForSaveAllResultDialog[]>,
type: Array as PropType<ErrorTypeForSaveAllResultDialog[]>,
required: true,
},
engineErrorArray: {
type: Array as PropType<WriteErrorTypeForSaveAllResultDialog[]>,
type: Array as PropType<ErrorTypeForSaveAllResultDialog[]>,
required: true,
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/store/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export type SaveResultObject = {
path: string | undefined;
errorMessage?: string;
};
export type WriteErrorTypeForSaveAllResultDialog = {
export type ErrorTypeForSaveAllResultDialog = {
path: string;
message: string;
};
Expand Down

0 comments on commit bd2b4f1

Please sign in to comment.