mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
refactor: move interfaces to types.ts
This commit is contained in:
1 parent
7f33100132
commit
bb2a1a145f
3 files changed
+18
-15
No files matched your search
@@ -2,12 +2,7 @@
|
||||
import { computed } from 'vue'
|
||||
import MarkdownText from './MarkdownText.vue'
|
||||
import sessionStore from '../store/session'
|
||||
|
||||
interface Task {
|
||||
id: number
|
||||
name: string
|
||||
completed: boolean
|
||||
}
|
||||
import { Task } from '../types'
|
||||
|
||||
const tasks = computed(() => {
|
||||
return sessionStore.session.tasks.map((task: Task) => {
|
||||
|
||||
Reference in new issue
Block a user