Skip to content

Commit d903cbe

Browse files
committed
typeをObject Lessonに変更(defaultの記述は後日)
resolve: #139 (comment)
1 parent 4a9d206 commit d903cbe

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/components/ContentCardEditable.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,16 @@
5050
import Vue from 'vue'
5151
import SubjectTag from '@/components/SubjectTag.vue'
5252
import ContentCardEditorButton from '@/components/ContentCardEditorButton.vue'
53+
import { classData } from '~/types/store/classData'
54+
5355
export default Vue.extend({
5456
components: {
5557
SubjectTag,
5658
ContentCardEditorButton
5759
},
5860
props: {
5961
lesson: {
60-
type: Object,
62+
type: Object as () => classData.Lesson,
6163
required: true,
6264
default: () => {}
6365
}

src/components/PeriodCardEditable.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@
3131
import Vue from 'vue'
3232
import dayjs from 'dayjs'
3333
import ContentCardEditable from '@/components/ContentCardEditable.vue'
34+
import { classData } from '~/types/store/classData'
3435
3536
export default Vue.extend({
3637
components: { ContentCardEditable },
3738
props: {
3839
classData: {
39-
type: Object,
40+
type: Object as () => classData.Lesson,
4041
default: () => {}
4142
}
4243
},

0 commit comments

Comments
 (0)