remove unecessary Step class

This commit is contained in:
Julien Calixte
2023-04-11 23:06:44 +02:00
parent 058046ad1f
commit c8722cad06
6 changed files with 21 additions and 40 deletions

View File

@@ -4,14 +4,14 @@ import {
adaptStepsToTextarea,
adaptTextareaToSteps
} from '../infra/adaptStepsToTextarea'
import type { Step } from '../models/step'
import type { Stepable } from '../interfaces/stepable'
const props = defineProps<{
modelValue: Step[]
modelValue: Stepable[]
}>()
const emit = defineEmits<{
(event: 'update:modelValue', payload: Step[]): void
(event: 'update:modelValue', payload: Stepable[]): void
}>()
const rawSteps = ref(adaptStepsToTextarea(props.modelValue))