Corriger les erreurs vue-tsc dans Chill

This commit is contained in:
Boris Waaub
2026-03-03 09:38:42 +00:00
parent 590f4121d0
commit 1e3918319e
48 changed files with 577 additions and 574 deletions

View File

@@ -21,7 +21,7 @@
</template>
<script lang="ts" setup>
import { ref, watch, defineProps, defineEmits } from "vue";
import { ref, watch } from "vue";
// Components
import PickEntity from "ChillMainAssets/vuejs/PickEntity/PickEntity.vue";

View File

@@ -39,7 +39,7 @@ import { StoredObject } from "ChillDocStoreAssets/types";
import { useStore } from "vuex";
const props = defineProps<{
modelValue?: string;
modelValue: string;
motive?: MotiveWithParent | null;
}>();

View File

@@ -26,7 +26,7 @@
name:
currentPersons.length > 0
? currentPersons.map((person: Person) => person.text).join(", ")
: undefined,
: "",
})
}}
</h3>

View File

@@ -142,7 +142,7 @@ final readonly class ImportMotivesFromDirectory
// Support parent > child notation in the current language label
$parentName = null;
$childName = trim($labelForSearch);
if (false !== strpos($childName, '>')) {
if (str_contains($childName, '>')) {
[$parentName, $childName] = array_map('trim', explode('>', $childName, 2));
}